joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10006b11
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x30
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
xor edi, edi
mov ebx, 0x1541
mov dword [0x102f7534], 0
mov dword [0x102f7538], 0
mov dword [0x102f7544], 0
mov dword [0x102f752c], 0x1541
cmp eax, 0
mov dword [ebp - 0x10], eax
mov eax, edi
mov dword [ebp - 0x14], eax
mov eax, edi
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0x20], edx
mov dword [ebp - 0x24], esi
mov dword [ebp - 0x28], edi
mov dword [ebp - 0x2c], ebx
je 0x10006cb5
jmp 0x10006b9e
mov eax, dword [0x102f7534]
mov ecx, dword [0x102f752c]
mov edx, dword [0x102f7538]
mov esi, dword [ebp - 0x30]
mov dword [ebp - 0x18], edx
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x14], esi
mov dword [ebp - 0x2c], ecx
mov eax, dword [ebp - 0x2c]
mov ecx, dword [ebp - 0x28]
mov edx, dword [ebp - 0x18]
mov esi, dword [ebp - 0x14]
mov edi, 0x100
add ecx, 1
mov ebx, esi
add ebx, 1
add eax, 0xffffe50f
mov dword [0x102f752c], eax
mov eax, ecx
mov dword [ebp - 0x34], edx
cdq
idiv edi
mov dword [0x102f7534], edx
mov dword [0x102f7530], 0x1c5a
mov ecx, dword [ebp - 0x24]
movzx ecx, byte [ecx + edx]
mov dword [ebp - 0x38], edx
mov edx, dword [ebp - 0x34]
add ecx, edx
mov eax, ecx
cdq
idiv edi
mov dword [0x102f7538], edx
mov dword [0x102f752c], 0xe53
mov ecx, dword [ebp - 0x24]
mov edi, dword [ebp - 0x38]
mov cl, byte [ecx + edi]
mov byte [0x102f753c], cl
mov dword [0x102f7530], 0x1303
mov ecx, dword [ebp - 0x24]
mov cl, byte [ecx + edx]
mov edx, dword [ebp - 0x24]
mov byte [edx + edi], cl
mov cl, byte [0x102f753c]
mov edx, dword [0x102f7538]
mov edi, dword [ebp - 0x24]
mov byte [edi + edx], cl
mov edx, dword [0x102f752c]
mov ecx, edx
add ecx, 0x1414
mov dword [0x102f752c], ecx
mov ecx, dword [0x102f7534]
movzx ecx, byte [edi + ecx]
mov edi, dword [0x102f7538]
mov dword [ebp - 0x3c], ecx
mov ecx, dword [ebp - 0x24]
movzx edi, byte [ecx + edi]
mov ecx, dword [ebp - 0x3c]
add edi, ecx
mov ecx, edx
add ecx, 0xfffff366
mov dword [0x102f752c], ecx
and edi, 0xff
mov dword [0x102f7544], edi
mov ecx, dword [ebp - 0x24]
mov cl, byte [ecx + edi]
mov edi, dword [ebp - 0x1c]
mov ch, byte [edi + esi]
add edx, 0xffffe34d
mov dword [0x102f752c], edx
xor ch, cl
mov edx, dword [ebp - 0x20]
mov byte [edx + esi], ch
mov esi, dword [ebp - 0x10]
cmp ebx, esi
mov dword [ebp - 0x30], ebx
jne 0x10006b7e
mov dword [0x102f7530], 0xaeb
add esp, 0x30
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x4058f9
Capabilities:
Query environment variable

Disassembly:
push 0x210
mov eax, 0x571f94
call fcn.00545f10
mov ebx, ecx
mov edi, dword [ebp + 8]
xor eax, eax
mov esi, eax
test edi, edi
je 0x4059cf
cmp word [edi], ax
je 0x4059cf
mov esi, 0x104
lea eax, [ebp - 0x218]
push esi
push eax
push edi
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
test eax, eax
jne 0x40594b
push edi
lea eax, [ebp - 0x218]
push esi
push eax
call fcn.0054dedc
add esp, 0xc
lea ecx, [ebp - 0x218]
call fcn.0040a21e
lea eax, [ebp - 0x218]
mov ecx, ebx
push eax
call fcn.0040589f
mov esi, eax
test esi, esi
jne 0x4059cf
push 0x38
call fcn.004149b6
mov esi, eax
pop ecx
mov dword [ebp - 0x21c], esi
and dword [ebp - 4], 0
test esi, esi
je 0x4059aa
lea eax, [ebp - 0x218]
mov byte [esi], 1
push eax
lea ecx, [esi + 4]
call fcn.00402ea0
mov byte [ebp - 4], 1
lea ecx, [esi + 0x20]
and dword [esi + 0x1c], 0
call fcn.00403bd0
mov byte [ebp - 4], 0
jmp 0x4059ac
xor esi, esi
or dword [ebp - 4], 0xffffffff
mov dword [ebp - 0x21c], esi
test esi, esi
je 0x4059cf
lea eax, [ebp - 0x21c]
push eax
lea ecx, [ebx + 0x40]
call fcn.0040801d
mov esi, dword [ebp - 0x21c]
mov eax, esi
call fcn.00545eba
ret 4
Function at 0x406943
Capabilities:
Write file on windows

Disassembly:
push 0x2c
mov eax, 0x5722ad
call fcn.00545f10
mov ebx, ecx
mov eax, dword [ebp + 8]
xor esi, esi
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x30], esi
cmp dword [ebx + 0x2e4], esi
jle 0x406a21
cmp eax, 0xffffffff
je 0x406a21
push str.____Queued_Lines_End_____r_n
lea ecx, [ebp - 0x2c]
call fcn.00402ea0
mov dword [ebp - 4], 1
lea edi, [ebx + 0x2d4]
push eax
mov ecx, edi
call fcn.00408386
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2c]
call fcn.00402de0
jmp 0x406a18
lea eax, [ebp - 0x20]
mov ecx, edi
push eax
call fcn.00408a11
mov edx, eax
mov ecx, dword [edx]
test ecx, ecx
jne 0x4069b8
xor eax, eax
jmp 0x4069ba
mov eax, dword [ecx]
mov ecx, dword [eax + 8]
mov eax, dword [eax + 4]
dec ecx
and ecx, dword [edx + 8]
mov esi, dword [eax + ecx*4]
mov ecx, esi
call fcn.00402f00
push 0
lea ecx, [ebp - 0x38]
push ecx
mov eax, dword [eax]
mov ecx, esi
add eax, eax
push eax
call fcn.00402d80
push eax
push dword [ebp - 0x34]
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov esi, dword [ebp - 0x30]
test eax, eax
je 0x4069f7
add esi, dword [ebp - 0x38]
mov dword [ebp - 0x30], esi
mov ecx, dword [edi + 8]
mov eax, dword [edi + 4]
dec ecx
and ecx, dword [edi + 0xc]
mov ecx, dword [eax + ecx*4]
call fcn.00402de0
sub dword [edi + 0x10], 1
jne 0x406a15
and dword [edi + 0xc], 0
jmp 0x406a18
inc dword [edi + 0xc]
cmp dword [ebx + 0x2e4], 0
ja 0x4069a1
mov eax, esi
call fcn.00545eba
ret 8
Function at 0x40731d
Capabilities:
Enumerate process modules

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x408
mov eax, dword [0x5ddf64]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
push eax
xor esi, esi
mov ebx, ecx
push esi
push 0x410
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov edi, eax
test edi, edi
je 0x4073a5
lea eax, [ebp - 0x408]
push eax
push 0x400
lea eax, [ebp - 0x404]
push eax
push edi
call dword [sym.imp.PSAPI.DLL_EnumProcessModules]
test eax, eax
je 0x40739e
test dword [ebp - 0x408], 0xfffffffc
jbe 0x40739e
add ebx, 0xbc
push 0x104
push ebx
push dword [ebp + esi*4 - 0x404]
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov eax, dword [ebp - 0x408]
inc esi
shr eax, 2
cmp esi, eax
jb 0x40737d
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.005456ba
mov esp, ebp
pop ebp
ret 4
Function at 0x4073b8
Capabilities:
Accept command line arguments

Disassembly:
push 0xc0
mov eax, 0x5723da
call fcn.00545f10
mov ebx, ecx
mov eax, dword [ebp + 8]
lea ecx, [ebp - 0x58]
push str.Module_File_Name:
mov dword [ebp - 0xc8], eax
call fcn.00402ea0
and dword [ebp - 4], 0
lea ecx, [ebp - 0xa0]
push str.____Command_Line:
call fcn.00402ea0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x40]
push str.____File_Version:
call fcn.00402ea0
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x88]
push str.______Process_ID:
call fcn.00402ea0
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x70]
push str.________Built_on:
call fcn.00402ea0
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x28]
push str.___Log_File_Name:__
call fcn.00402ea0
mov byte [ebp - 4], 5
lea edi, [ebx + 0xbc]
push 0x104
push edi
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push edi
lea ecx, [ebp - 0x58]
call fcn.00402d90
push 0x14
call fcn.004149b6
pop ecx
mov dword [ebp - 0xcc], eax
mov byte [ebp - 4], 6
test eax, eax
je 0x40747d
push edi
mov ecx, eax
call fcn.00413830
mov esi, eax
jmp 0x40747f
xor esi, esi
mov byte [ebp - 4], 5
test esi, esi
je 0x4074aa
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x10]
lea ecx, [ebp - 0x40]
test eax, eax
je 0x407498
push eax
jmp 0x40749d
push str._no_version_info_
call fcn.00402d90
mov eax, dword [esi]
mov ecx, esi
push 1
call dword [eax]
lea eax, [ebp - 0xc4]
push eax
push 0
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesExW]
test eax, eax
je 0x4074e0
push dword [ebp - 0xa4]
push str.___ld_bytes_
push 0x104
push edi
call fcn.0040433a
add esp, 0x10
lea ecx, [ebp - 0x58]
push edi
call fcn.00402d90
lea ecx, [ebp - 0x58]
call fcn.00402d80
mov esi, dword [ebp - 0xc8]
mov edi, 0x40000000
push eax
push 0
push edi
push esi
mov ecx, ebx
call fcn.0040724d
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
lea ecx, [ebp - 0xa0]
call fcn.00402d90
lea ecx, [ebp - 0xa0]
call fcn.00402d80
push eax
push 0
push edi
push esi
mov ecx, ebx
call fcn.0040724d
lea ecx, [ebp - 0x40]
call fcn.00402d80
push eax
push 0
push edi
push esi
mov ecx, ebx
call fcn.0040724d
push 0xffffffffffffffff
push 0
lea eax, [ebx + 0x54]
push eax
lea ecx, [ebp - 0x88]
call fcn.00403800
lea ecx, [ebp - 0x88]
call fcn.00402d80
push eax
push 0
push edi
push esi
mov ecx, ebx
call fcn.0040724d
push 0xffffffffffffffff
push 0
lea eax, [ebx + 0x38]
push eax
lea ecx, [ebp - 0x70]
call fcn.00403800
lea ecx, [ebp - 0x70]
call fcn.00402d80
push eax
push 0
push edi
push esi
mov ecx, ebx
call fcn.0040724d
mov ecx, esi
call fcn.0040a4cb
push eax
lea ecx, [ebp - 0x28]
call fcn.00402d90
push 0x5bac18
lea ecx, [ebp - 0x28]
call fcn.00402d90
lea ecx, [ebp - 0x28]
call fcn.00402d80
push eax
push 0
push edi
push esi
mov ecx, ebx
call fcn.0040724d
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x28]
call fcn.00402de0
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x70]
call fcn.00402de0
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x88]
call fcn.00402de0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x40]
call fcn.00402de0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0xa0]
call fcn.00402de0
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x58]
call fcn.00402de0
call fcn.00545eba
ret 4
Function at 0x407611
Capabilities:
Get common file path

Disassembly:
push 0x248
mov eax, 0x572418
call fcn.00545f10
mov edi, ecx
mov dword [ebp - 0x250], edi
mov esi, dword [ebp + 8]
test esi, esi
je 0x407811
mov eax, dword [esi + 0x14]
test eax, eax
je 0x40763e
mov al, byte [eax]
jmp 0x407641
mov al, byte [esi + 0x18]
test al, al
je 0x407811
mov ecx, esi
call fcn.0040a4cb
lea ecx, [ebp - 0x248]
mov ebx, eax
call fcn.00403bd0
and dword [ebp - 4], 0
lea ecx, [ebp - 0x230]
call fcn.00403bd0
mov byte [ebp - 4], 1
push ebx
call dword [sym.imp.SHLWAPI.dll_PathIsFileSpecW]
add edi, 0xbc
test eax, eax
je 0x4076a7
push edi
xor eax, eax
push eax
push eax
push 0x8023
push eax
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
push edi
lea ecx, [ebp - 0x248]
call fcn.00403060
push ebx
lea ecx, [ebp - 0x230]
jmp 0x4076d7
push ebx
push 0x104
push edi
call fcn.0054dedc
add esp, 0xc
push edi
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
push eax
lea ecx, [ebp - 0x230]
call fcn.00403060
push edi
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
push edi
lea ecx, [ebp - 0x248]
call fcn.00403060
test dword [esi + 0x10], 0x20000
je 0x407737
push edi
push 0
lea ecx, [ebp - 0x230]
call fcn.00402d80
push eax
lea ecx, [ebp - 0x248]
call fcn.00402d80
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
test eax, eax
je 0x407737
push 0x104
lea eax, [ebp - 0x218]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetLongPathNameW]
test eax, eax
je 0x407737
mov ecx, dword [esi + 0x14]
test ecx, ecx
je 0x407737
lea eax, [ebp - 0x218]
add ecx, 4
push eax
call fcn.00403060
mov ecx, esi
call fcn.0040a4cb
mov ebx, eax
push ebx
mov dword [ebp - 0x24c], ebx
call fcn.0054dad3
pop ecx
test eax, eax
je 0x4077b5
xor eax, eax
test dword [esi + 0x10], 0x10000
push eax
push 0x80
je 0x407766
push 2
jmp 0x407768
push 4
push eax
push eax
push 0x40000000
push ebx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x4077b5
lea eax, [ebp - 0x254]
push eax
push edi
push 0x104
push 0
push dword [ebp - 0x24c]
push 0
call dword [sym.imp.KERNEL32.dll_SearchPathW]
test eax, eax
je 0x4077ae
mov ecx, dword [esi + 0x14]
test ecx, ecx
je 0x4077ae
add ecx, 4
push edi
call fcn.00403060
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test dword [esi + 0xc], 0x40000000
je 0x4077e3
mov edi, dword [ebp - 0x250]
mov ecx, edi
push esi
call fcn.004073b8
test dword [esi + 0x10], 0x100000
je 0x4077e3
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
mov ecx, edi
call fcn.0040731d
mov eax, dword [esi + 0x14]
test eax, eax
je 0x4077ef
mov byte [eax], 0
jmp 0x4077f3
mov byte [esi + 0x18], 0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x230]
call fcn.00402de0
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x248]
call fcn.00402de0
call fcn.00545eba
ret 4
Function at 0x409097
Capabilities:
Check mutex on windows

Disassembly:
push 0x54
mov eax, 0x5726df
call fcn.00545f10
mov esi, ecx
mov dword [ebp - 0x5c], esi
lea ecx, [ebp - 0x40]
mov dword [ebp - 0x60], esi
call fcn.00403bd0
xor ebx, ebx
mov dword [ebp - 4], ebx
cmp dword [esi + 8], ebx
jne 0x40911f
lea ecx, [ebp - 0x28]
call fcn.00403bd0
mov byte [ebp - 4], 1
lea edx, [ebp - 0x40]
mov ecx, str.RegValues
call fcn.0040a3fc
push str.Lock
lea edx, [ebp - 0x40]
lea ecx, [ebp - 0x58]
call fcn.00403990
pop ecx
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x28]
push eax
call fcn.00402e20
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x58]
call fcn.00402de0
lea ecx, [ebp - 0x28]
call fcn.00402d80
push eax
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov dword [esi + 8], eax
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x28]
call fcn.00402de0
push 0x32
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x4091c4
push str.MappedFile
lea edx, [ebp - 0x40]
lea ecx, [ebp - 0x28]
call fcn.00403990
pop ecx
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x28]
call fcn.00402d80
push eax
mov edi, 0x88
push edi
push ebx
push 4
push ebx
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov dword [esi + 4], eax
test eax, eax
je 0x4091b0
call dword [sym.imp.KERNEL32.dll_GetLastError]
push edi
push 0
push 0
xor ebx, ebx
cmp eax, 0xb7
push 0xf001f
push dword [esi + 4]
setne bl
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov dword [esi + 0xc], eax
test eax, eax
je 0x4091ae
test ebx, ebx
je 0x4091a9
mov dword [ebp - 0x5c], eax
mov byte [ebp - 4], 4
mov ecx, eax
call fcn.00405662
mov byte [ebp - 4], 3
mov eax, dword [esi + 0xc]
inc dword [eax]
xor ebx, ebx
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x28]
call fcn.00402de0
mov esi, dword [esi + 0xc]
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x40]
call fcn.00402de0
mov eax, esi
call fcn.00545eba
ret 4
Function at 0x40921a
Capabilities:
Check mutex on windows

Disassembly:
push 0x54
mov eax, 0x57274b
call fcn.00545f10
mov esi, ecx
mov dword [ebp - 0x5c], esi
lea ecx, [ebp - 0x40]
mov dword [ebp - 0x60], esi
call fcn.00403bd0
xor ebx, ebx
mov dword [ebp - 4], ebx
cmp dword [esi + 8], ebx
jne 0x4092a2
lea ecx, [ebp - 0x28]
call fcn.00403bd0
mov byte [ebp - 4], 1
lea edx, [ebp - 0x40]
mov ecx, str.ExtMonitor
call fcn.0040a3fc
push str.Lock
lea edx, [ebp - 0x40]
lea ecx, [ebp - 0x58]
call fcn.00403990
pop ecx
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x28]
push eax
call fcn.00402e20
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x58]
call fcn.00402de0
lea ecx, [ebp - 0x28]
call fcn.00402d80
push eax
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov dword [esi + 8], eax
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x28]
call fcn.00402de0
push 0x32
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x409381
push str.MappedFile
lea edx, [ebp - 0x40]
lea ecx, [ebp - 0x28]
call fcn.00403990
pop ecx
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x28]
call fcn.00402d80
push eax
push 0x48
push ebx
push 4
push ebx
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov dword [esi + 4], eax
test eax, eax
je 0x40936d
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0x48
push 0
push 0
xor ebx, ebx
cmp eax, 0xb7
push 0xf001f
push dword [esi + 4]
setne bl
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov edi, eax
mov dword [esi + 0xc], edi
test edi, edi
je 0x40936b
test ebx, ebx
je 0x409359
mov dword [ebp - 0x5c], edi
mov byte [ebp - 4], 4
xor ebx, ebx
mov dword [edi + 4], ebx
lea ecx, [edi + 0x14]
mov dword [edi], vtable.NGLogging::CExtMonitorSettings.0
mov dword [edi + 8], ebx
mov dword [edi + 0xc], ebx
mov byte [edi + 0x10], bl
call fcn.00403bd0
mov byte [ebp - 4], 5
lea ecx, [edi + 0x2c]
call fcn.00403bd0
mov byte [ebp - 4], 6
mov dword [edi + 0x44], ebx
mov byte [ebp - 4], 3
jmp 0x40935b
xor ebx, ebx
mov ecx, dword [esi + 0xc]
lea eax, [ecx + 4]
neg ecx
sbb ecx, ecx
and ecx, eax
inc dword [ecx]
jmp 0x40936d
xor ebx, ebx
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x28]
call fcn.00402de0
mov esi, dword [esi + 0xc]
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x40]
call fcn.00402de0
mov eax, esi
call fcn.00545eba
ret 4
Function at 0x40a2c9
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push edi
mov edi, ecx
mov ebx, edx
test edi, edi
je 0x40a343
xor ecx, ecx
lea eax, [ebp - 4]
push eax
push ecx
lea eax, [ebp - 8]
mov dword [ebp - 4], ecx
push eax
push ecx
push ebx
push edi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x40a343
cmp dword [ebp - 8], 1
jne 0x40a343
mov eax, dword [ebp - 4]
xor ecx, ecx
push esi
shr eax, 1
push 2
inc eax
pop edx
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.004149ed
mov esi, eax
pop ecx
test esi, esi
je 0x40a342
lea eax, [ebp - 4]
push eax
push esi
lea eax, [ebp - 8]
push eax
push 0
push ebx
push edi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x40a33b
mov ecx, dword [ebp + 8]
push esi
call fcn.00403060
push esi
call fcn.004149f6
pop ecx
pop esi
pop edi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x40b832
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov ebx, ecx
xor edi, edi
mov dword [ebp - 4], ebx
mov esi, edi
jmp 0x40b847
mov ebx, dword [ebp - 4]
add edi, 0x200
test esi, esi
je 0x40b858
push esi
call fcn.004149f6
pop ecx
xor ecx, ecx
mov eax, edi
push 2
pop edx
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.004149ed
mov esi, eax
pop ecx
test esi, esi
je 0x40b8b9
xor eax, eax
lea ecx, [ebx + 4]
mov word [esi], ax
call fcn.00402d80
push eax
push edi
push esi
push 0x5b883c
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
mov ebx, eax
lea ecx, [edi - 1]
cmp ebx, ecx
jae 0x40b844
mov ecx, dword [ebp + 0x10]
push esi
call fcn.00403060
push esi
call fcn.004149f6
xor eax, eax
cmp eax, ebx
pop ecx
sbb eax, eax
neg eax
jmp 0x40b8bb
xor al, al
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x410287
Capabilities:
Write file on windows

Disassembly:
push 0x24
mov eax, 0x57345f
call fcn.00545f10
mov ebx, ecx
cmp dword [ebx + 0x38], 0
je 0x410393
cmp byte [ebx + 0x3e], 0
je 0x410393
mov eax, dword [ebx]
mov esi, 0xffff
push esi
call dword [eax + 0xc]
movzx eax, ax
cmp si, ax
jne 0x4102c3
xor al, al
jmp 0x410395
xor eax, eax
lea ecx, [ebp - 0x2c]
push eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], eax
push 8
mov dword [ebp - 0x18], 0xf
mov dword [ebp - 0x1c], eax
mov byte [ebp - 0x2c], al
call fcn.00410e45
and dword [ebp - 4], 0
mov edx, dword [ebp - 0x2c]
mov ecx, dword [ebp - 0x18]
cmp ecx, 0x10
lea eax, [ebp - 0x30]
mov ecx, dword [ebx + 0x38]
lea edi, [ebp - 0x2c]
push eax
mov eax, dword [ebp - 0x1c]
lea esi, [ebp - 0x2c]
cmovae edi, edx
cmovae esi, edx
mov edx, dword [ecx]
add eax, edi
push eax
push esi
lea eax, [ebx + 0x40]
push eax
call dword [edx + 0x20]
sub eax, 0
je 0x410327
sub eax, 1
je 0x41032b
dec eax
sub eax, 1
je 0x41037d
xor bl, bl
jmp 0x41037f
mov byte [ebx + 0x3e], 0
mov ecx, dword [ebp - 0x18]
lea eax, [ebp - 0x2c]
mov edx, dword [ebp - 0x2c]
cmp ecx, 0x10
mov esi, dword [ebp - 0x30]
cmovae eax, edx
sub esi, eax
je 0x410363
push dword [ebx + 0x4c]
cmp ecx, 0x10
lea eax, [ebp - 0x2c]
push esi
cmovae eax, edx
push 1
push eax
call fcn.0055aca3
add esp, 0x10
cmp esi, eax
jne 0x410323
mov ecx, dword [ebp - 0x18]
mov edx, dword [ebp - 0x2c]
cmp byte [ebx + 0x3e], 0
je 0x41037d
test esi, esi
jne 0x4102ed
push esi
push 8
lea ecx, [ebp - 0x2c]
call fcn.00408cd9
jmp 0x4102e7
mov bl, 1
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2c]
push 0
push 1
call fcn.00408599
mov al, bl
jmp 0x410395
mov al, 1
call fcn.00545eba
ret

Function at 0x4111f0
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], ecx
mov eax, dword [ebp + 0x2c]
push eax
mov ecx, dword [ebp + 0x28]
push ecx
mov edx, dword [ebp + 0x24]
push edx
mov eax, dword [ebp + 0x20]
push eax
mov ecx, dword [ebp + 0x1c]
push ecx
mov edx, dword [ebp + 0x18]
push edx
mov eax, dword [ebp + 0x14]
push eax
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
mov esp, ebp
pop ebp
ret 0x28

Function at 0x4112c0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], ecx
mov eax, dword [ebp + 0x1c]
push eax
mov ecx, dword [ebp + 0x18]
push ecx
mov edx, dword [ebp + 0x14]
push edx
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov esp, ebp
pop ebp
ret 0x18

Function at 0x4113a0
Capabilities:
Terminate thread

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], ecx
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov esp, ebp
pop ebp
ret 8

Function at 0x411560
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], ecx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov esp, ebp
pop ebp
ret 4
Function at 0x4120b0
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], ecx
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov esp, ebp
pop ebp
ret 8

Function at 0x4128c0
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], ecx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
mov esp, ebp
pop ebp
ret 4

Function at 0x4128e0
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], ecx
mov eax, dword [ebp + 0x1c]
push eax
mov ecx, dword [ebp + 0x18]
push ecx
mov edx, dword [ebp + 0x14]
push edx
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
mov esp, ebp
pop ebp
ret 0x18

Function at 0x412c20
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], ecx
mov eax, dword [ebp + 0x30]
push eax
mov ecx, dword [ebp + 0x2c]
push ecx
mov edx, dword [ebp + 0x28]
push edx
mov eax, dword [ebp + 0x24]
push eax
mov ecx, dword [ebp + 0x20]
push ecx
mov edx, dword [ebp + 0x1c]
push edx
mov eax, dword [ebp + 0x18]
push eax
mov ecx, dword [ebp + 0x14]
push ecx
mov edx, dword [ebp + 0x10]
push edx
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_CreateProcessAsUserW]
mov esp, ebp
pop ebp
ret 0x2c

Function at 0x412fd0
Capabilities:
Monitor local ipv4 address changes

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], ecx
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.IPHLPAPI.DLL_NotifyAddrChange]
mov esp, ebp
pop ebp
ret 8