joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1001ea70
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10048173
mov eax, dword fs:[0]
push eax
sub esp, 0x84
mov eax, dword [0x10062698]
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 + 0xc]
mov ebx, dword [ebp + 8]
mov dword [ebp - 0x80], 0
mov dword [edi], 0
mov dword [ebp - 4], 0
mov dword [ebp - 0x7c], 0
lea eax, [ebp - 0x7c]
mov byte [ebp - 4], 1
push eax
lea eax, [ebp - 0x80]
push eax
call fcn.10011430
mov eax, dword [ebp - 0x80]
add esp, 8
test eax, eax
je 0x1001ec83
mov esi, dword [sym.imp.OLEAUT32.dll_VariantInit]
push eax
call esi
test eax, eax
je 0x1001ec83
mov eax, dword [ebp - 0x7c]
test eax, eax
je 0x1001ec83
push eax
call esi
test eax, eax
je 0x1001ec83
mov dword [ebp - 0x90], 0
mov dword [ebp - 0x8c], 0
mov dword [ebp - 0x88], 0
push 0x201
push dword [ebp - 0x80]
lea ecx, [ebp - 0x90]
mov byte [ebp - 4], 2
push SysReAllocStringLen
call fcn.10018540
mov esi, dword [ebp - 0x90]
test eax, eax
jne 0x1001ec74
push 0x64
lea eax, [ebp - 0x74]
push 0
push eax
call fcn.10023e50
add esp, 0xc
mov dword [ebp - 0x78], 0x64
lea eax, [ebp - 0x78]
push eax
lea eax, [ebp - 0x74]
push eax
lea eax, [ebp - 0x84]
push eax
push 0
push dword [ebp - 0x7c]
push esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1001ec74
mov eax, dword [ebp - 0x84]
cmp eax, 1
je 0x1001eb9b
cmp eax, 2
jne 0x1001ec74
mov ecx, dword [ebp - 0x78]
test ecx, ecx
je 0x1001ebbc
test cl, 1
jne 0x1001ec74
mov eax, ecx
shr eax, 1
cmp word [ebp + eax*2 - 0x76], 0
je 0x1001ebc2
jmp 0x1001ec74
xor eax, eax
mov word [ebp - 0x74], ax
shr ecx, 1
cmp ecx, 0x2d
jne 0x1001ec74
lea ecx, [ebp - 0x78]
call fcn.1001ce20
lea eax, [ebp - 0x74]
mov byte [ebp - 4], 3
push eax
lea ecx, [ebp - 0x78]
call fcn.1001cef0
lea eax, [ebp - 0x84]
mov dword [ebp - 0x84], 0
push eax
lea eax, [ebp - 0x20]
push 0x1004bfe8
push eax
call fcn.10001dd0
push 0x2a
push dword [ebp - 0x78]
call fcn.1001d3b0
movzx eax, al
add esp, 0x14
cmp dword [ebp - 0x84], eax
jne 0x1001ec6c
lea edx, [ebp - 0x74]
lea ecx, [edx + 2]
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x1001ec22
sub edx, ecx
lea eax, [ebp - 0x74]
sar edx, 1
mov ecx, ebx
push edx
push eax
call fcn.1001ccf0
push dword [0x100626b8]
lea eax, [ebp - 0x74]
push dword [0x100626b4]
push eax
call dword [sym.imp.SHLWAPI.dll_StrCmpNIW]
test eax, eax
jne 0x1001ec5d
mov dword [edi], 1
lea ecx, [ebp - 0x78]
call fcn.10003330
mov edi, 1
jmp 0x1001ec76
lea ecx, [ebp - 0x78]
call fcn.10003330
xor edi, edi
test esi, esi
je 0x1001ec85
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x1001ec85
xor edi, edi
push dword [ebp - 0x7c]
mov esi, dword [sym.imp.OLEAUT32.dll_SysStringLen]
call esi
push dword [ebp - 0x80]
call esi
mov eax, edi
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.1001b4ae
mov esp, ebp
pop ebp
ret
Function at 0x1001ecc0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 0xc]
push esi
mov esi, ecx
test edx, edx
jne 0x1001ecd5
lea eax, [edx + 0xd]
pop esi
pop ebp
ret 0xc
mov eax, edx
push edi
lea edi, [eax + 2]
nop dword [eax + eax]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x1001ece0
sub eax, edi
sar eax, 1
lea eax, [eax*2 + 2]
push eax
push edx
push dword [ebp + 0x10]
push 0
push dword [ebp + 8]
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
pop edi
pop esi
pop ebp
ret 0xc
Function at 0x10021e40
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 0x10021eb1
mov eax, dword [ebp + 0xc]
cmp eax, 1
je 0x10021e7f
cmp eax, 2
jne 0x10021e9b
mov ecx, dword [ebp + 0x10]
test esi, esi
je 0x10021eab
test ecx, ecx
je 0x10021ea6
test cl, 1
jne 0x10021e9b
mov eax, ecx
shr eax, 1
cmp word [esi + eax*2 - 2], 0
je 0x10021eab
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 0x1004038b
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.1004004b
Function at 0x401434
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
pushal
call 0x401443
pop dword [ebp - 0x2c]
mov eax, 0xe4b72bc9
sub eax, 0xe4771786
sub dword [ebp - 0x2c], eax
mov dword [ebp - 0x3c], 0xb094f93b
add dword [ebp - 0x3c], 0x9dbd4c10
mov dword [ebp - 0x38], 0xcd13ffaf
sub dword [ebp - 0x38], 0x9ae0b36a
mov dword [ebp - 0x34], 0xf9821580
sub dword [ebp - 0x34], 0xad35d152
mov dword [ebp - 0x30], 0x666c8956
sub dword [ebp - 0x30], 0x666c8956
lea eax, [ebp - 0x3c]
push eax
mov eax, sym.imp.kernel32.dll_GetModuleHandleA
add eax, dword [ebp - 0x2c]
call dword [eax]
mov dword [ebp - 0x3c], 0x3ec0bea9
add dword [ebp - 0x3c], 0x35b1aaad
mov dword [ebp - 0x38], 0xd73877e6
add dword [ebp - 0x38], 0x6a33e98f
mov dword [ebp - 0x34], 0x9e37aada
sub dword [ebp - 0x34], 0x3ac83e6e
mov dword [ebp - 0x30], 0xd76a95d8
add dword [ebp - 0x30], 0x28956a28
lea ebx, [ebp - 0x3c]
push ebx
push eax
mov eax, 0xb6bcbb4b
sub eax, 0xb67c4a3b
add eax, dword [ebp - 0x2c]
call dword [eax]
push 0x40
push 0x1000
push 0x38059
push 0
call eax
mov ecx, 0x845a2156
add ecx, 0x7ba6265f
xor esi, esi
add esi, eax
mov edi, 0x62083246
sub edi, 0x61c4d246
add edi, dword [ebp - 0x2c]
mov edx, 0xad9ead60
sub dword [ebp - 0x1c], eax
mov ebx, dword [edi]
sub dword [ebp - 0xc], 0xa8e51c8a
add ebx, edx
mov dword [ebp - 0x14], 0x1cc5d67f
mov dword [esi], ebx
xor dword [ebp - 0x18], ebx
add esi, 4
add edi, 0xbafbd8a7
sub edi, 0xbafbd8a3
loop 0x40155c
add eax, 0xeb75c454
sub eax, 0xeb74b2ad
mov ebx, eax
add eax, 0xb7bd106e
sub eax, 0xb7bd1069
mov ecx, 0x4fb7b663
add ecx, 0xb088499d
add ecx, dword [ebp - 0x2c]
call ebx
leave
ret

Function at 0x402a69
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
push ebx
push esi
lea eax, [ebp - 4]
push edi
push eax
mov eax, dword [0x424010]
or al, 8
xor ebx, ebx
push eax
push ebx
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
cmp eax, ebx
jne 0x402afd
mov esi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
mov edi, 0x105
jmp 0x402aba
cmp dword [ebp + 0x10], ebx
jne 0x402af1
lea eax, [ebp - 0x10c]
push ebx
push eax
push dword [ebp - 4]
call fcn.00401434
test eax, eax
jne 0x402acc
lea eax, [ebp - 0x10c]
push edi
push eax
push ebx
push dword [ebp - 4]
call esi
test eax, eax
je 0x402aa1
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 4
call fcn.004060b1
cmp eax, ebx
je 0x402b04
push ebx
push dword [0x424010]
push dword [ebp + 0xc]
push dword [ebp + 8]
call eax
jmp 0x402afd
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
inc eax
pop edi
pop esi
pop ebx
leave
ret 0xc
cmp dword [0x424010], ebx
jne 0x402afa
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
test eax, eax
jne 0x402afa
jmp 0x402afd
Function at 0x403b50
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
movzx eax, word [ebp + 8]
mov dword [ebp + 8], eax
pop ebp
jmp fcn.0041d16a

Function at 0x40696f
Capabilities:
Query environment variable

Disassembly:
push 0x210
mov eax, 0x57cd5c
call fcn.00552ddc
mov ebx, ecx
mov edi, dword [ebp + 8]
xor eax, eax
mov esi, eax
test edi, edi
je 0x406a45
cmp word [edi], ax
je 0x406a45
mov esi, 0x104
lea eax, [ebp - 0x218]
push esi
push eax
push edi
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
test eax, eax
jne 0x4069c1
push edi
lea eax, [ebp - 0x218]
push esi
push eax
call fcn.0055a327
add esp, 0xc
lea ecx, [ebp - 0x218]
call fcn.0040ac98
lea eax, [ebp - 0x218]
mov ecx, ebx
push eax
call fcn.00406915
mov esi, eax
test esi, esi
jne 0x406a45
push 0x38
call fcn.00417e68
mov esi, eax
pop ecx
mov dword [ebp - 0x21c], esi
and dword [ebp - 4], 0
test esi, esi
je 0x406a20
lea eax, [ebp - 0x218]
mov byte [esi], 1
push eax
lea ecx, [esi + 4]
call fcn.00403aa0
mov byte [ebp - 4], 1
lea ecx, [esi + 0x20]
and dword [esi + 0x1c], 0
call fcn.00404928
mov byte [ebp - 4], 0
jmp 0x406a22
xor esi, esi
or dword [ebp - 4], 0xffffffff
mov dword [ebp - 0x21c], esi
test esi, esi
je 0x406a45
lea eax, [ebp - 0x21c]
push eax
lea ecx, [ebx + 0x40]
call fcn.004050d1
mov esi, dword [ebp - 0x21c]
mov eax, esi
call fcn.00552d86
ret 4
Function at 0x407a70
Capabilities:
Write file on windows

Disassembly:
push 0x2c
mov eax, 0x57d075
call fcn.00552ddc
mov esi, ecx
mov dword [ebp - 0x38], esi
mov eax, dword [ebp + 8]
xor ebx, ebx
mov dword [ebp - 0x30], eax
cmp dword [esi + 0x2e4], ebx
jle 0x407b65
cmp eax, 0xffffffff
je 0x407b65
push str.____Queued_Lines_End_____r_n
lea ecx, [ebp - 0x28]
call fcn.00403aa0
mov dword [ebp - 4], 1
lea edi, [esi + 0x2d4]
push eax
mov ecx, edi
call fcn.00409227
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.00404340
cmp dword [esi + 0x2e4], ebx
jbe 0x407b65
lea eax, [ebp - 0x1c]
mov ecx, edi
push eax
call fcn.00409bcb
mov edx, eax
mov eax, dword [edx]
test eax, eax
je 0x407aed
mov eax, dword [eax]
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.00403c30
mov ecx, esi
mov eax, dword [eax]
mov dword [ebp - 0x2c], eax
call fcn.00403d10
mov ecx, eax
cmp dword [ecx + 0x14], 8
jb 0x407b17
mov ecx, dword [ecx]
push 0
lea eax, [ebp - 0x34]
push eax
mov eax, dword [ebp - 0x2c]
add eax, eax
push eax
push ecx
push dword [ebp - 0x30]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x407b34
add ebx, dword [ebp - 0x34]
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.00404340
sub dword [edi + 0x10], 1
jne 0x407b52
and dword [edi + 0xc], 0
jmp 0x407b55
inc dword [edi + 0xc]
mov eax, dword [ebp - 0x38]
cmp dword [eax + 0x2e4], 0
ja 0x407ad8
mov eax, ebx
call fcn.00552d86
ret 8
Function at 0x408568
Capabilities:
Enumerate process modules

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x408
mov eax, dword [0x5eefec]
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 0x4085f0
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 0x4085e9
test dword [ebp - 0x408], 0xfffffffc
jbe 0x4085e9
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 0x4085c8
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.00552889
mov esp, ebp
pop ebp
ret 4
Function at 0x4088db
Capabilities:
Get common file path

Disassembly:
push 0x248
mov eax, 0x57d1b3
call fcn.00552ddc
mov edi, ecx
mov dword [ebp - 0x250], edi
mov esi, dword [ebp + 8]
test esi, esi
je 0x408aed
mov eax, dword [esi + 0x14]
test eax, eax
je 0x408908
mov al, byte [eax]
jmp 0x40890b
mov al, byte [esi + 0x18]
test al, al
je 0x408aed
mov ecx, esi
call fcn.0040af56
lea ecx, [ebp - 0x248]
mov ebx, eax
call fcn.00404928
and dword [ebp - 4], 0
lea ecx, [ebp - 0x230]
call fcn.00404928
mov byte [ebp - 4], 1
push ebx
call dword [sym.imp.SHLWAPI.dll_PathIsFileSpecW]
add edi, 0xbc
test eax, eax
je 0x408971
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.00403b00
push ebx
lea ecx, [ebp - 0x230]
jmp 0x4089a1
push ebx
push 0x104
push edi
call fcn.0055a327
add esp, 0xc
push edi
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
push eax
lea ecx, [ebp - 0x230]
call fcn.00403b00
push edi
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
push edi
lea ecx, [ebp - 0x248]
call fcn.00403b00
test dword [esi + 0x10], 0x20000
je 0x408a13
lea ecx, [ebp - 0x230]
call fcn.00403d10
mov ebx, eax
cmp dword [ebx + 0x14], 8
jb 0x4089c4
mov ebx, dword [ebx]
lea ecx, [ebp - 0x248]
call fcn.00403d10
cmp dword [eax + 0x14], 8
jb 0x4089d7
mov eax, dword [eax]
push edi
push 0
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
test eax, eax
je 0x408a13
push 0x104
lea eax, [ebp - 0x218]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetLongPathNameW]
test eax, eax
je 0x408a13
mov ecx, dword [esi + 0x14]
test ecx, ecx
je 0x408a13
lea eax, [ebp - 0x218]
add ecx, 4
push eax
call fcn.00403b00
mov ecx, esi
call fcn.0040af56
mov ebx, eax
push ebx
mov dword [ebp - 0x24c], ebx
call fcn.00558353
pop ecx
test eax, eax
je 0x408a91
xor eax, eax
test dword [esi + 0x10], 0x10000
push eax
push 0x80
je 0x408a42
push 2
jmp 0x408a44
push 4
push eax
push eax
push 0x40000000
push ebx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x408a91
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 0x408a8a
mov ecx, dword [esi + 0x14]
test ecx, ecx
je 0x408a8a
add ecx, 4
push edi
call fcn.00403b00
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test dword [esi + 0xc], 0x40000000
je 0x408abf
mov edi, dword [ebp - 0x250]
mov ecx, edi
push esi
call fcn.00408603
test dword [esi + 0x10], 0x100000
je 0x408abf
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
mov ecx, edi
call fcn.00408568
mov eax, dword [esi + 0x14]
test eax, eax
je 0x408acb
mov byte [eax], 0
jmp 0x408acf
mov byte [esi + 0x18], 0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x230]
call fcn.00404340
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x248]
call fcn.00404340
call fcn.00552d86
ret 4
Function at 0x40a18d
Capabilities:
Check mutex on windows

Disassembly:
push 0x54
mov eax, 0x57d3c0
call fcn.00552ddc
mov esi, ecx
mov dword [ebp - 0x5c], esi
lea ecx, [ebp - 0x40]
mov dword [ebp - 0x60], esi
call fcn.00404928
xor ebx, ebx
mov dword [ebp - 4], ebx
cmp dword [esi + 8], ebx
jne 0x40a21d
lea ecx, [ebp - 0x28]
call fcn.00404928
mov byte [ebp - 4], 1
lea edx, [ebp - 0x40]
mov ecx, str.RegValues
call fcn.0040ae76
push str.Lock
lea edx, [ebp - 0x40]
lea ecx, [ebp - 0x58]
call fcn.0040a755
pop ecx
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x28]
push eax
call fcn.0040a66f
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x58]
call fcn.00404340
lea ecx, [ebp - 0x28]
call fcn.00403d10
cmp dword [eax + 0x14], 8
jb 0x40a206
mov eax, dword [eax]
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.00404340
push 0x32
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x40a2ca
push str.MappedFile
lea edx, [ebp - 0x40]
lea ecx, [ebp - 0x28]
call fcn.0040a755
pop ecx
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x28]
call fcn.00403d10
cmp dword [eax + 0x14], 8
jb 0x40a255
mov eax, dword [eax]
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 0x40a2b6
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 0x40a2b4
test ebx, ebx
je 0x40a2af
mov dword [ebp - 0x5c], eax
mov byte [ebp - 4], 4
mov ecx, eax
call fcn.004066d8
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.00404340
mov esi, dword [esi + 0xc]
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x40]
call fcn.00404340
mov eax, esi
call fcn.00552d86
ret 4
Function at 0x40a320
Capabilities:
Check mutex on windows

Disassembly:
push 0x54
mov eax, 0x57d42c
call fcn.00552ddc
mov esi, ecx
mov dword [ebp - 0x5c], esi
lea ecx, [ebp - 0x40]
mov dword [ebp - 0x60], esi
call fcn.00404928
xor ebx, ebx
mov dword [ebp - 4], ebx
cmp dword [esi + 8], ebx
jne 0x40a3b0
lea ecx, [ebp - 0x28]
call fcn.00404928
mov byte [ebp - 4], 1
lea edx, [ebp - 0x40]
mov ecx, str.ExtMonitor
call fcn.0040ae76
push str.Lock
lea edx, [ebp - 0x40]
lea ecx, [ebp - 0x58]
call fcn.0040a755
pop ecx
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x28]
push eax
call fcn.0040a66f
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x58]
call fcn.00404340
lea ecx, [ebp - 0x28]
call fcn.00403d10
cmp dword [eax + 0x14], 8
jb 0x40a399
mov eax, dword [eax]
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.00404340
push 0x32
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x40a497
push str.MappedFile
lea edx, [ebp - 0x40]
lea ecx, [ebp - 0x28]
call fcn.0040a755
pop ecx
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x28]
call fcn.00403d10
cmp dword [eax + 0x14], 8
jb 0x40a3e8
mov eax, dword [eax]
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 0x40a483
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 0x40a481
test ebx, ebx
je 0x40a46f
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.00404928
mov byte [ebp - 4], 5
lea ecx, [edi + 0x2c]
call fcn.00404928
mov byte [ebp - 4], 6
mov dword [edi + 0x44], ebx
mov byte [ebp - 4], 3
jmp 0x40a471
xor ebx, ebx
mov ecx, dword [esi + 0xc]
lea eax, [ecx + 4]
neg ecx
sbb ecx, ecx
and ecx, eax
inc dword [ecx]
jmp 0x40a483
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.00404340
mov esi, dword [esi + 0xc]
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x40]
call fcn.00404340
mov eax, esi
call fcn.00552d86
ret 4
Function at 0x40ad43
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 0x40adbd
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 0x40adbd
cmp dword [ebp - 8], 1
jne 0x40adbd
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.00417e9f
mov esi, eax
pop ecx
test esi, esi
je 0x40adbc
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 0x40adb5
mov ecx, dword [ebp + 8]
push esi
call fcn.00403b00
push esi
call fcn.00417ea8
pop ecx
pop esi
pop edi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40f0cb
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push esi
xor esi, esi
cmp dword [ebp + 8], esi
je 0x40f13a
push ebx
push edi
call fcn.00425815
push 5
push dword [ebp + 8]
mov edi, dword [eax + 0xc]
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov ebx, eax
test ebx, ebx
je 0x40f138
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x40f138
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp + 8], eax
test eax, eax
je 0x40f138
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, eax
test edi, edi
je 0x40f138
push edi
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
test esi, esi
je 0x40f138
push edi
push dword [ebp + 8]
mov edx, edi
mov ecx, esi
call fcn.00410571
pop ecx
pop ecx
pop edi
pop ebx
mov eax, esi
pop esi
pop ebp
ret 4

Function at 0x40f1cb
Capabilities:
Identify system language via api

Disassembly:
push 0xc
mov eax, 0x57df8e
call fcn.00552e13
mov ebx, edx
mov dword [ebp - 0x14], ebx
mov edi, ecx
mov eax, dword [ebp + 8]
test ax, ax
jne 0x40f1ef
call dword [sym.imp.KERNEL32.dll_GetUserDefaultUILanguage]
movzx eax, ax
xor esi, esi
movzx eax, ax
push esi
push esi
lea ecx, [ebp + 8]
mov dword [ebp + 8], esi
push ecx
push eax
push edi
push esi
push 0x1300
mov dword [ebp - 4], esi
call dword [sym.imp.KERNEL32.dll_FormatMessageW]
test eax, eax
jne 0x40f265
cmp dword [ebp + 8], eax
je 0x40f223
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov dword [ebp + 8], esi
push esi
push esi
lea eax, [ebp + 8]
push eax
push 0x400
push edi
push esi
push 0x1300
call dword [sym.imp.KERNEL32.dll_FormatMessageW]
test eax, eax
jne 0x40f265
mov eax, dword [ebp + 8]
test eax, eax
jne 0x40f253
push 0x64
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov dword [ebp + 8], eax
push edi
push edi
push str._u__0x_08X__error
push 0x32
push eax
call fcn.0040497e
add esp, 0x14
or dword [ebp - 4], 0xffffffff
jmp 0x40f27a
cmp dword [ebp + 8], 0
je 0x40f2aa
lea eax, [ebp - 0x18]
mov dword [ebp - 0x18], esi
push eax
push 0x5c7eb8
push dword [ebp + 8]
call fcn.0057a86f
add esp, 0xc
mov ecx, ebx
push dword [ebp + 8]
call fcn.00403b00
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_LocalFree]
call fcn.00552d71
ret