joyce8/EMBER2024-capa huggingface dataset:
Function at 0x404950
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x45e7bb
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x47d6c0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
lea ecx, [esi + 4]
mov dword [esi], vtable.std::basic_streambuf_wchar_t__struct_std::char_traits_wchar_t__.0
call fcn.004327ae
push 4
mov dword [ebp - 4], 0
call fcn.0044497b
mov edi, eax
add esp, 4
test edi, edi
je 0x4049cc
call fcn.00431f9e
mov dword [edi], eax
call fcn.00431e58
push 0
lea ecx, [ebp - 0x10]
mov ebx, eax
call fcn.00431d8d
mov eax, dword [ebx + 4]
cmp eax, 0xffffffff
jae 0x4049c2
inc eax
mov dword [ebx + 4], eax
lea ecx, [ebp - 0x10]
call fcn.00431db5
jmp 0x4049ce
xor edi, edi
lea eax, [esi + 8]
mov dword [esi + 0x10], eax
lea ecx, [esi + 0x18]
mov dword [esi + 0x20], ecx
lea edx, [esi + 0x1c]
mov dword [esi + 0x24], edx
mov dword [esi + 0x38], edi
lea eax, [esi + 0xc]
mov dword [esi + 0x14], eax
lea ecx, [esi + 0x28]
mov dword [esi + 0x30], ecx
lea edx, [esi + 0x2c]
mov dword [esi + 0x34], edx
mov dword [eax], 0
mov eax, dword [esi + 0x24]
mov dword [eax], 0
mov ecx, dword [esi + 0x34]
mov dword [ecx], 0
mov edx, dword [esi + 0x10]
mov dword [edx], 0
mov eax, dword [esi + 0x20]
mov dword [eax], 0
mov ecx, dword [esi + 0x30]
mov dword [ecx], 0
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x407630
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x461626
mov eax, dword fs:[0]
push eax
sub esp, 0xc0
mov eax, dword [0x47d6c0]
xor eax, esp
mov dword [esp + 0xb8], eax
push esi
mov eax, dword [0x47d6c0]
xor eax, esp
push eax
lea eax, [esp + 0xc8]
mov dword fs:[0], eax
xor eax, eax
mov dword [esp + 0xc], 0x60
mov dword [esp + 0x24], 0xf
mov dword [esp + 0x20], eax
mov byte [esp + 0x10], al
mov dword [esp + 0xd0], eax
lea eax, [esp + 0xc]
push eax
push 0x46ecf8
lea esi, [esp + 0x18]
call fcn.0040f970
mov ecx, eax
call fcn.0040faf0
mov ecx, eax
call fcn.0040fcc0
push eax
lea ecx, [esp + 0x30]
call fcn.0040a3f0
mov esi, vtable.Exception.0
mov dword [esp + 0x2c], esi
lea ecx, [esp + 0x2c]
mov byte [esp + 0xd0], 1
call fcn.0040fe80
push eax
lea ecx, [esp + 0x78]
call fcn.00407040
push 0x476cc4
lea ecx, [esp + 0x78]
push ecx
mov dword [esp + 0x7c], esi
call fcn.0044404d
int3

Function at 0x40ba60
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x45fca7
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x47d6c0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, dword [ebp + 8]
xor eax, eax
mov dword [ebp - 0x10], eax
mov dword [ebx], 0x46f070
mov dword [ebx + 0x68], vtable.std::basic_ios_char__struct_std::char_traits_char__.0
mov dword [ebp - 4], eax
mov ecx, dword [ebx]
mov edx, dword [ecx + 4]
mov dword [ebx + edx], vtable.std::basic_istream_char__struct_std::char_traits_char__.0
mov dword [ebx + 8], eax
mov dword [ebx + 0xc], eax
mov eax, dword [ebx]
mov edi, dword [eax + 4]
add edi, ebx
mov ecx, edi
mov dword [ebp - 0x10], 1
call fcn.00401c90
lea esi, [ebx + 0x10]
push 0x20
mov ecx, edi
mov dword [edi + 0x38], esi
mov dword [edi + 0x3c], 0
call fcn.0040f3e0
cmp dword [edi + 0x38], 0
mov byte [edi + 0x40], al
jne 0x40baf9
mov eax, dword [edi + 0xc]
or eax, 4
or eax, 4
push 0
push eax
mov ecx, edi
call fcn.00401b50
mov dword [ebp - 4], 2
mov ecx, dword [ebx]
mov edx, dword [ecx + 4]
mov ecx, esi
mov dword [ebx + edx], vtable.std::basic_ifstream_char__struct_std::char_traits_char__.0
call fcn.0040e140
lea ecx, [esi + 0x18]
mov dword [esi + 0x20], ecx
lea eax, [esi + 8]
mov dword [esi + 0x10], eax
lea edx, [esi + 0x1c]
mov dword [esi + 0x24], edx
mov dword [esi], vtable.std::basic_filebuf_char__struct_std::char_traits_char__.0
mov byte [esi + 0x50], 0
mov byte [esi + 0x49], 0
lea ecx, [esi + 0x28]
mov dword [esi + 0x30], ecx
xor ecx, ecx
lea eax, [esi + 0xc]
mov dword [esi + 0x14], eax
lea edx, [esi + 0x2c]
mov dword [esi + 0x34], edx
mov dword [eax], ecx
mov eax, dword [esi + 0x24]
mov dword [eax], ecx
mov edx, dword [esi + 0x34]
mov dword [edx], ecx
mov eax, dword [esi + 0x10]
mov dword [eax], ecx
mov edx, dword [esi + 0x20]
mov dword [edx], ecx
mov eax, dword [esi + 0x30]
mov edx, dword [0x482be8]
mov dword [eax], ecx
mov dword [esi + 0x54], ecx
mov dword [esi + 0x4c], edx
mov dword [esi + 0x44], ecx
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 4
Function at 0x40c400
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x45fc57
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x47d6c0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, dword [ebp + 8]
xor eax, eax
mov dword [ebp - 0x10], eax
mov dword [ebx], 0x46ec90
mov dword [ebx + 0x60], vtable.std::basic_ios_char__struct_std::char_traits_char__.0
mov dword [ebp - 4], eax
mov eax, dword [ebx]
mov ecx, dword [eax + 4]
mov dword [ebx + ecx], vtable.std::basic_ostream_char__struct_std::char_traits_char__.0
mov edx, dword [ebx]
mov edi, dword [edx + 4]
add edi, ebx
mov ecx, edi
mov dword [ebp - 0x10], 1
call fcn.00401c90
lea esi, [ebx + 4]
push 0x20
mov ecx, edi
mov dword [edi + 0x38], esi
mov dword [edi + 0x3c], 0
call fcn.0040f3e0
cmp dword [edi + 0x38], 0
mov byte [edi + 0x40], al
jne 0x40c491
mov eax, dword [edi + 0xc]
or eax, 4
or eax, 4
push 0
push eax
mov ecx, edi
call fcn.00401b50
mov dword [ebp - 4], 2
mov eax, dword [ebx]
mov ecx, dword [eax + 4]
mov dword [ebx + ecx], vtable.std::basic_ofstream_char__struct_std::char_traits_char__.0
mov ecx, esi
call fcn.0040e140
lea edx, [esi + 8]
mov dword [esi + 0x10], edx
lea ecx, [esi + 0x18]
mov dword [esi + 0x20], ecx
lea edx, [esi + 0x1c]
mov dword [esi + 0x24], edx
mov dword [esi], vtable.std::basic_filebuf_char__struct_std::char_traits_char__.0
mov byte [esi + 0x50], 0
mov byte [esi + 0x49], 0
lea ecx, [esi + 0x28]
mov dword [esi + 0x30], ecx
xor ecx, ecx
lea eax, [esi + 0xc]
mov dword [esi + 0x14], eax
lea edx, [esi + 0x2c]
mov dword [esi + 0x34], edx
mov dword [eax], ecx
mov eax, dword [esi + 0x24]
mov dword [eax], ecx
mov edx, dword [esi + 0x34]
mov dword [edx], ecx
mov eax, dword [esi + 0x10]
mov dword [eax], ecx
mov edx, dword [esi + 0x20]
mov dword [edx], ecx
mov eax, dword [esi + 0x30]
mov edx, dword [0x482be8]
mov dword [eax], ecx
mov dword [esi + 0x54], ecx
mov dword [esi + 0x4c], edx
mov dword [esi + 0x44], ecx
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 4
Function at 0x40d420
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x45f6f8
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x47d6c0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor ebx, ebx
cmp dword [edi + 0x44], ebx
je 0x40d540
cmp byte [edi + 0x49], bl
je 0x40d540
mov eax, dword [edi]
mov edx, dword [eax + 0xc]
push 0xffffffffffffffff
mov ecx, edi
call edx
cmp eax, 0xffffffff
je 0x40d534
mov ecx, 0xf
xor eax, eax
mov byte [ebp - 0x2c], bl
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x1c], 8
cmp ecx, 0x10
jae 0x40d494
lea eax, [ebp - 0x2c]
mov byte [eax + 8], bl
mov dword [ebp - 4], ebx
mov eax, dword [ebp - 0x2c]
mov ebx, dword [ebp - 0x18]
mov edx, eax
cmp ebx, 0x10
jae 0x40d4ac
lea edx, [ebp - 0x2c]
mov eax, edx
add edx, dword [ebp - 0x1c]
mov ecx, dword [edi + 0x44]
mov esi, dword [ecx]
lea ebx, [ebp - 0x30]
push ebx
push edx
push eax
lea eax, [edi + 0x4c]
push eax
mov eax, dword [esi + 0x18]
call eax
sub eax, 0
je 0x40d4d5
dec eax
je 0x40d4d9
sub eax, 2
lea ecx, [ebp - 0x2c]
jne 0x40d52f
jmp 0x40d53b
mov byte [edi + 0x49], 0
mov ebx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x2c]
mov ecx, eax
cmp ebx, 0x10
jae 0x40d4e9
lea ecx, [ebp - 0x2c]
mov esi, dword [ebp - 0x30]
sub esi, ecx
je 0x40d512
cmp ebx, 0x10
jae 0x40d4f8
lea eax, [ebp - 0x2c]
mov ecx, dword [edi + 0x54]
push ecx
push esi
push 1
push eax
call fcn.00445f81
add esp, 0x10
cmp esi, eax
jne 0x40d52c
mov ebx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x2c]
cmp byte [edi + 0x49], 0
je 0x40d538
test esi, esi
jne 0x40d4a0
push esi
push 8
lea ecx, [ebp - 0x2c]
call fcn.004058c0
jmp 0x40d49a
lea ecx, [ebp - 0x2c]
call fcn.00407700
xor al, al
jmp 0x40d542
lea ecx, [ebp - 0x2c]
call fcn.00407700
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00444268
mov esp, ebp
pop ebp
ret
Function at 0x40e140
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x45e72b
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x47d6c0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x14], esi
lea ecx, [esi + 4]
mov dword [esi], vtable.std::basic_streambuf_char__struct_std::char_traits_char__.0
call fcn.004327ae
push 4
mov dword [ebp - 4], 0
call fcn.0044497b
mov edi, eax
add esp, 4
test edi, edi
je 0x40e1c0
call fcn.00431f9e
mov dword [edi], eax
call fcn.00431e58
push 0
lea ecx, [ebp - 0x10]
mov ebx, eax
call fcn.00431d8d
mov eax, dword [ebx + 4]
cmp eax, 0xffffffff
jae 0x40e1b6
inc eax
mov dword [ebx + 4], eax
lea ecx, [ebp - 0x10]
call fcn.00431db5
jmp 0x40e1c2
xor edi, edi
lea eax, [esi + 8]
mov dword [esi + 0x10], eax
lea ecx, [esi + 0x18]
mov dword [esi + 0x20], ecx
lea edx, [esi + 0x1c]
mov dword [esi + 0x24], edx
mov dword [esi + 0x38], edi
lea eax, [esi + 0xc]
mov dword [esi + 0x14], eax
lea ecx, [esi + 0x28]
mov dword [esi + 0x30], ecx
lea edx, [esi + 0x2c]
mov dword [esi + 0x34], edx
mov dword [eax], 0
mov eax, dword [esi + 0x24]
mov dword [eax], 0
mov ecx, dword [esi + 0x34]
mov dword [ecx], 0
mov edx, dword [esi + 0x10]
mov dword [edx], 0
mov eax, dword [esi + 0x20]
mov dword [eax], 0
mov ecx, dword [esi + 0x30]
mov dword [ecx], 0
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4124e0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x461626
mov eax, dword fs:[0]
push eax
sub esp, 0xc0
mov eax, dword [0x47d6c0]
xor eax, esp
mov dword [esp + 0xb8], eax
push esi
mov eax, dword [0x47d6c0]
xor eax, esp
push eax
lea eax, [esp + 0xc8]
mov dword fs:[0], eax
xor eax, eax
mov dword [esp + 0xc], 0x50
mov dword [esp + 0x24], 0xf
mov dword [esp + 0x20], eax
mov byte [esp + 0x10], al
mov dword [esp + 0xd0], eax
lea eax, [esp + 0xc]
push eax
push 0x46ecf8
lea esi, [esp + 0x18]
call fcn.0040f970
mov ecx, eax
call fcn.0040faf0
mov ecx, eax
call fcn.0040fcc0
push eax
lea ecx, [esp + 0x30]
call fcn.0040a3f0
mov esi, vtable.Exception.0
mov dword [esp + 0x2c], esi
lea ecx, [esp + 0x2c]
mov byte [esp + 0xd0], 1
call fcn.0040fe80
push eax
lea ecx, [esp + 0x78]
call fcn.00407040
push 0x476cc4
lea ecx, [esp + 0x78]
push ecx
mov dword [esp + 0x7c], esi
call fcn.0044404d
int3

Function at 0x4125b0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x461626
mov eax, dword fs:[0]
push eax
sub esp, 0xc0
mov eax, dword [0x47d6c0]
xor eax, esp
mov dword [esp + 0xb8], eax
push esi
mov eax, dword [0x47d6c0]
xor eax, esp
push eax
lea eax, [esp + 0xc8]
mov dword fs:[0], eax
xor eax, eax
mov dword [esp + 0xc], 0x58
mov dword [esp + 0x24], 0xf
mov dword [esp + 0x20], eax
mov byte [esp + 0x10], al
mov dword [esp + 0xd0], eax
lea eax, [esp + 0xc]
push eax
push 0x46ecf8
lea esi, [esp + 0x18]
call fcn.0040f970
mov ecx, eax
call fcn.0040faf0
mov ecx, eax
call fcn.0040fcc0
push eax
lea ecx, [esp + 0x30]
call fcn.0040a3f0
mov esi, vtable.Exception.0
mov dword [esp + 0x2c], esi
lea ecx, [esp + 0x2c]
mov byte [esp + 0xd0], 1
call fcn.0040fe80
push eax
lea ecx, [esp + 0x78]
call fcn.00407040
push 0x476cc4
lea ecx, [esp + 0x78]
push ecx
mov dword [esp + 0x7c], esi
call fcn.0044404d
int3
Function at 0x4177f0
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x460040
mov eax, dword fs:[0]
push eax
sub esp, 0x40
mov eax, dword [0x47d6c0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [ebp + 8]
mov ebx, 8
cmp dword [edi + 0x14], ebx
jb 0x41782c
mov eax, dword [edi]
jmp 0x41782e
mov eax, edi
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x417845
test al, 0x10
je 0x417845
mov al, 1
jmp 0x417916
sub esp, 0x1c
mov esi, esp
mov dword [ebp - 0x4c], esp
call fcn.004177c0
lea eax, [ebp - 0x2c]
push eax
call fcn.00406c80
add esp, 0x20
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0x2c]
cmp dword [ebp - 0x18], ebx
jae 0x417870
lea eax, [ebp - 0x2c]
mov ebx, dword [ebp - 0x1c]
push eax
call fcn.00403930
cmp eax, 0xffffffff
je 0x4178e9
push edi
mov ecx, eax
xor edx, edx
lea esi, [ebp - 0x48]
call fcn.00402a10
push eax
mov byte [ebp - 4], 1
call fcn.004177f0
mov esi, 8
add esp, 4
mov bl, al
cmp dword [ebp - 0x34], esi
jb 0x4178b0
mov ecx, dword [ebp - 0x48]
push ecx
call fcn.004434f1
add esp, 4
test bl, bl
je 0x4178d4
cmp dword [edi + 0x14], esi
jb 0x4178bb
mov edi, dword [edi]
push 0
push edi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
setne bl
cmp dword [ebp - 0x18], esi
jb 0x417914
mov edx, dword [ebp - 0x2c]
push edx
jmp 0x41790c
cmp dword [ebp - 0x18], esi
jb 0x4178e5
mov eax, dword [ebp - 0x2c]
push eax
call fcn.004434f1
add esp, 4
xor al, al
jmp 0x417916
mov esi, 8
cmp dword [edi + 0x14], esi
jb 0x4178f5
mov edi, dword [edi]
push 0
push edi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
setne bl
cmp dword [ebp - 0x18], esi
jb 0x417914
mov ecx, dword [ebp - 0x2c]
push ecx
call fcn.004434f1
add esp, 4
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00444268
mov esp, ebp
pop ebp
ret
Function at 0x418940
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x460aee
mov eax, dword fs:[0]
push eax
sub esp, 0xbc
mov eax, dword [0x47d6c0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0xc8], esi
push 0
push 0
mov dword [ebp - 4], 0
push 0
mov dword [esi], vtable.iusl::Mutex.0
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov dword [esi + 4], eax
test eax, eax
jne 0x418a1a
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0xe
push str.Mutex::Mutex__
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0xc4], eax
mov dword [ebp - 0x18], 0xf
mov dword [ebp - 0x1c], 0
mov byte [ebp - 0x2c], 0
call fcn.00403400
lea eax, [ebp - 0x2c]
push eax
lea ecx, [ebp - 0xc0]
mov byte [ebp - 4], 1
call fcn.0040a3f0
mov esi, vtable.Exception.0
mov dword [ebp - 0xc0], esi
lea ecx, [ebp - 0xc4]
push ecx
lea ecx, [ebp - 0xc0]
mov byte [ebp - 4], 2
call fcn.00419170
mov ecx, eax
call fcn.00419350
push eax
lea ecx, [ebp - 0x78]
call fcn.00407040
push 0x476cc4
lea edx, [ebp - 0x78]
push edx
mov dword [ebp - 0x78], esi
call fcn.0044404d
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00444268
mov esp, ebp
pop ebp
ret 4
Function at 0x41b7b0
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x47d6c0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push 0x46f4cc
push eax
lea eax, [ebp - 0x20]
push eax
call fcn.0041b590
mov eax, dword [ebp - 0x20]
add esp, 0xc
cmp dword [ebp - 0xc], 8
jae 0x41b7e1
lea eax, [ebp - 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0xc], 8
jb 0x41b7fa
mov ecx, dword [ebp - 0x20]
push ecx
call fcn.004434f1
add esp, 4
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00444268
mov esp, ebp
pop ebp
ret 4

Function at 0x41ec20
Capabilities:
Identify system language via api

Disassembly:
cmp byte [0x482c07], 0
je 0x41ec2f
mov eax, dword [0x482c08]
ret
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLangID]
movzx eax, ax
mov ecx, eax
and ecx, 0x3ff
add ecx, 0xfffffff9
cmp ecx, 0xf
ja case.0x41ec4f.8
movzx edx, byte [ecx + 0x41ec94]
jmp dword [edx*4 + 0x41ec80]
shr eax, 0xa
sub eax, 2
je 0x41ec64
mov eax, 1
ret
mov eax, 3
ret
mov eax, 2
ret
mov eax, 4
ret
mov eax, 5
ret
xor eax, eax
ret
Function at 0x426850
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x47d6c0]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [ebp + 0x1c], 8
mov eax, dword [ebp + 8]
mov dword [ebp - 0x210], 0
jae 0x426879
lea eax, [ebp + 8]
lea ecx, [ebp - 0x210]
push ecx
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
push 0x104
lea edx, [ebp - 0x20c]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [ebp - 0x20c]
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4268b0
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
sub eax, edx
mov edx, dword [ebp - 0x210]
sar eax, 1
lea eax, [eax + eax + 2]
push eax
lea ecx, [ebp - 0x20c]
push ecx
push 2
push 0
push 0x470d14
push edx
call esi
mov ecx, dword [ebp - 0x210]
push 4
lea eax, [ebp - 0x214]
push eax
push 4
push 0
push 0x470d38
push ecx
mov dword [ebp - 0x214], 7
call esi
mov edx, dword [ebp - 0x210]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esi, 8
cmp dword [ebp + 0x1c], esi
jb 0x42692c
mov eax, dword [ebp + 8]
push eax
call fcn.004434f1
add esp, 4
xor ecx, ecx
cmp dword [ebp + 0x38], esi
mov dword [ebp + 0x1c], 7
mov dword [ebp + 0x18], 0
mov word [ebp + 8], cx
pop esi
jb 0x426952
mov edx, dword [ebp + 0x24]
push edx
call fcn.004434f1
add esp, 4
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00444268
mov esp, ebp
pop ebp
ret
Function at 0x429d70
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
lea edx, [ebp + 0x10]
push edx
mov edx, dword [ebp + 8]
push esi
mov dword [ebp + 0x10], eax
lea eax, [ebp + 0xc]
push eax
push 0
mov dword [edi], 0
mov eax, dword [ecx]
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x429de2
mov eax, dword [ebp + 0xc]
cmp eax, 1
je 0x429db1
cmp eax, 2
jne 0x429dcc
mov eax, dword [ebp + 0x10]
test esi, esi
je 0x429ddc
test eax, eax
je 0x429dd7
test al, 1
jne 0x429dcc
mov ecx, eax
shr ecx, 1
cmp word [esi + ecx*2 - 2], 0
je 0x429ddc
pop edi
mov eax, 0xd
pop esi
pop ebp
ret 0xc
xor edx, edx
mov word [esi], dx
shr eax, 1
mov dword [edi], eax
xor eax, eax
pop edi
pop esi
pop ebp
ret 0xc

Function at 0x42a5c0
Capabilities:
Access the windows event log

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x208
mov eax, dword [0x47d6c0]
xor eax, ebp
mov dword [ebp - 4], eax
mov ecx, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp + 0x10]
push eax
push ecx
push 0xff
lea edx, [ebp - 0x204]
push pe_nt_image_headers32
push edx
call fcn.00444577
xor eax, eax
add esp, 0x14
lea ecx, [ebp - 0x204]
mov word [ebp - 6], ax
mov dword [ebp - 0x208], ecx
cmp dword [esi + 0x260], eax
jne 0x42a61d
mov edx, ecx
push edx
call fcn.004442b6
add esp, 4
add esi, 0x40
push esi
push 0
call dword [sym.imp.ADVAPI32.dll_RegisterEventSourceW]
mov esi, eax
test esi, esi
je 0x42a652
push 0
lea eax, [ebp - 0x208]
push eax
push 0
push 1
push 0
push 0
push 0
push 4
push esi
call dword [sym.imp.ADVAPI32.dll_ReportEventW]
push esi
call dword [sym.imp.ADVAPI32.dll_DeregisterEventSource]
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.00444268
mov esp, ebp
pop ebp
ret
Function at 0x42a800
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x220
mov eax, dword [0x47d6c0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov edi, ecx
mov ecx, dword [edi + 4]
mov edx, dword [edi]
or ecx, 0x2001f
push ecx
xor esi, esi
push eax
push edx
lea ecx, [ebp - 0x210]
mov dword [ebp - 0x218], eax
mov dword [ebp - 0x210], esi
mov dword [ebp - 0x20c], esi
mov dword [ebp - 0x208], esi
call fcn.00429cc0
mov ebx, eax
cmp ebx, esi
je 0x42a87a
mov eax, dword [ebp - 0x210]
cmp eax, esi
je 0x42a865
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
mov eax, ebx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00444268
mov esp, ebp
pop ebp
ret 4
lea eax, [ebp - 0x220]
push eax
mov eax, dword [ebp - 0x210]
push esi
push esi
push esi
lea ecx, [ebp - 0x214]
push ecx
lea edx, [ebp - 0x204]
push edx
push esi
push eax
mov dword [ebp - 0x214], pe_nt_image_headers32
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
jne 0x42a8fc
mov edi, edi
lea ecx, [ebp - 0x204]
push ecx
lea ecx, [ebp - 0x210]
call fcn.0042a800
mov ebx, eax
cmp ebx, esi
jne 0x42a854
lea edx, [ebp - 0x220]
push edx
mov edx, dword [ebp - 0x210]
push esi
push esi
push esi
lea eax, [ebp - 0x214]
push eax
lea ecx, [ebp - 0x204]
push ecx
push esi
push edx
mov dword [ebp - 0x214], pe_nt_image_headers32
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
je 0x42a8b0
mov eax, dword [ebp - 0x210]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp eax, esi
je 0x42a915
push eax
call ebx
mov dword [ebp - 0x210], esi
mov eax, dword [ebp - 0x218]
push eax
mov ecx, edi
mov dword [ebp - 0x20c], esi
call fcn.00429b70
mov edi, eax
mov eax, dword [ebp - 0x210]
cmp eax, esi
je 0x42a938
push eax
call ebx
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00444268
mov esp, ebp
pop ebp
ret 4
Function at 0x42ad50
Capabilities:
Create service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa10
mov eax, dword [0x47d6c0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0xf003f
xor edi, edi
push edi
push edi
mov ebx, ecx
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov esi, eax
test esi, esi
je 0x42ada9
push 1
lea eax, [ebx + 0x40]
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
test eax, eax
je 0x42ad9a
push eax
mov edi, 1
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
test edi, edi
jne 0x42aee4
push 0x104
lea ecx, [ebp - 0x20e]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
je 0x42ae4a
cmp eax, 0x104
je 0x42ae4a
mov edx, 0x22
mov word [ebp - 0x210], dx
mov ecx, edx
xor edx, edx
push 0xf003f
push edx
push edx
mov word [ebp + eax*2 - 0x20e], cx
mov word [ebp + eax*2 - 0x20c], dx
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov esi, eax
test esi, esi
jne 0x42ae5d
push 0x400
lea eax, [ebp - 0xa10]
push eax
push 0xd80a
call fcn.004297d0
add esp, 0xc
test eax, eax
jne 0x42ae35
push str.Could_not_open_Service_Manager
lea ecx, [ebp - 0xa10]
push 0x400
push ecx
call fcn.00429580
add esp, 0xc
push 0
add ebx, 0x40
push ebx
lea edx, [ebp - 0xa10]
push edx
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00444268
mov esp, ebp
pop ebp
ret
push 0
push 0
push str.RPCSS
push 0
push 0
lea eax, [ebp - 0x210]
push eax
push 1
push 3
push 0x10
push 0xf01ff
lea edi, [ebx + 0x40]
push edi
push edi
push esi
call dword [sym.imp.ADVAPI32.dll_CreateServiceW]
test eax, eax
jne 0x42aed8
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push 0x400
lea ecx, [ebp - 0xa10]
push ecx
push 0xd80b
call fcn.004297d0
add esp, 0xc
test eax, eax
jne 0x42aec9
push 0x469ea0
lea edx, [ebp - 0xa10]
push 0x400
push edx
call fcn.00429580
add esp, 0xc
push 0
push edi
lea eax, [ebp - 0xa10]
push eax
jmp 0x42ae42
mov edi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push eax
call edi
push esi
call edi
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
mov eax, 1
pop ebx
call fcn.00444268
mov esp, ebp
pop ebp
ret