joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4016a0
Capabilities:
Create thread

Disassembly:
push esi
xor esi, esi
cmp dword [0x59cbf8], esi
jle 0x4016d9
push edi
mov edi, dword [sym.imp.KERNEL32.dll_CreateThread]
push 0
push 0
push 0x59cbdc
push 0x4018e0
push 0
push 0
call edi
mov ecx, dword [0x59cbf4]
mov dword [ecx + esi*4], eax
inc esi
cmp esi, dword [0x59cbf8]
jl 0x4016b2
pop edi
pop esi
ret

Function at 0x402070
Capabilities:
Connect to http server
Create http request
Download and write a file
Read data from internet
Receive and write data from server to client
Receive data
Send data
Send http request
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x420
mov eax, dword [0x594ca8]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov edi, dword [ebp + 8]
push 0
push 0
push 0
push 1
push 0x5704d8
mov esi, edx
mov dword [ebp - 0x414], eax
mov dword [ebp - 0x418], ecx
call dword [sym.imp.WININET.dll_InternetOpenA]
mov dword [ebp - 0x410], eax
test eax, eax
jne 0x4020cd
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0051553d
mov esp, ebp
pop ebp
ret
push 0
push 0
push 3
push 0
push 0
push 0x50
push edi
push eax
call dword [sym.imp.WININET.dll_InternetConnectA]
mov dword [ebp - 0x40c], eax
test eax, eax
je 0x4020ba
push 1
push 0x4000000
lea edx, [ebp - 0x420]
push edx
push 0
push 0
push ebx
push esi
push eax
mov dword [ebp - 0x420], 0x5704e0
mov dword [ebp - 0x41c], 0x5704e4
call dword [sym.imp.WININET.dll_HttpOpenRequestA]
mov esi, eax
test esi, esi
je 0x4020ba
mov edx, dword [ebp - 0x418]
test edx, edx
je 0x40213b
mov eax, edx
lea edi, [eax + 1]
nop
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x402130
sub eax, edi
jmp 0x40213d
xor eax, eax
push 0
push 0
push eax
push edx
push esi
call dword [sym.imp.WININET.dll_HttpSendRequestA]
test eax, eax
je 0x4020ba
push 0x3ff
lea eax, [ebp - 0x403]
push 0
push eax
mov byte [ebp - 0x404], 0
call fcn.00518ea0
mov ecx, dword [ebp - 0x414]
push 0x570524
push ecx
mov dword [ebp - 0x408], 0
call fcn.00516210
mov edi, eax
add esp, 0x14
test edi, edi
je 0x402203
mov ebx, dword [sym.imp.WININET.dll_InternetReadFile]
lea edx, [ebp - 0x408]
push edx
push 0x400
lea eax, [ebp - 0x404]
push eax
push esi
call ebx
test eax, eax
je 0x4021fa
mov eax, dword [ebp - 0x408]
test eax, eax
je 0x4021fa
push edi
push eax
lea ecx, [ebp - 0x404]
push 1
push ecx
call fcn.005164d6
push 0x400
lea edx, [ebp - 0x404]
push 0
push edx
call fcn.00518ea0
add esp, 0x1c
lea eax, [ebp - 0x408]
push eax
push 0x400
lea ecx, [ebp - 0x404]
push ecx
push esi
call ebx
test eax, eax
jne 0x4021b0
push edi
call fcn.005162db
add esp, 4
push esi
mov esi, dword [sym.imp.WININET.dll_InternetCloseHandle]
call esi
mov edx, dword [ebp - 0x40c]
push edx
call esi
mov eax, dword [ebp - 0x410]
push eax
call esi
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
mov eax, 1
pop ebx
call fcn.0051553d
mov esp, ebp
pop ebp
ret
Function at 0x402330
Capabilities:
Delete directory
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x541010
mov eax, dword fs:[0]
push eax
sub esp, 0x28
push esi
push edi
mov eax, dword [0x594ca8]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
lea ecx, [ebp - 0x34]
mov dword [ebp - 4], 0
call fcn.00417d5d
mov byte [ebp - 4], 1
mov eax, dword [ebp + 8]
push 0
push eax
lea ecx, [ebp - 0x34]
call fcn.00417e29
test eax, eax
je 0x4024b0
lea ecx, [ebp - 0x34]
call fcn.004179af
mov edx, dword [ebp - 0x34]
mov eax, dword [edx + 0x38]
push 0x10
lea ecx, [ebp - 0x34]
call eax
test eax, eax
je 0x40249e
lea ecx, [ebp - 0x34]
call fcn.004178c9
lea ecx, [ebp + 8]
push ecx
lea ecx, [ebp - 0x14]
call fcn.00404900
push 4
push 0x570574
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 2
call fcn.00404340
mov edx, dword [ebp - 0x14]
push 0
push edx
lea ecx, [ebp - 0x34]
call fcn.00417e29
mov esi, dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
je 0x40246b
lea ecx, [ebp - 0x34]
call fcn.004179af
lea ecx, [ebp - 0x34]
mov edi, eax
call fcn.00417d1f
test eax, eax
jne 0x402463
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebp - 0x34]
call fcn.0041806c
mov byte [ebp - 4], 3
mov edx, dword [ebp - 0x34]
mov eax, dword [edx + 0x38]
push 0x10
lea ecx, [ebp - 0x34]
call eax
test eax, eax
je 0x402436
push ecx
lea edx, [ebp - 0x10]
mov dword [ebp - 0x18], esp
mov ecx, esp
push edx
call fcn.00404900
call fcn.00402330
mov eax, dword [ebp - 0x10]
add esp, 4
push eax
call esi
jmp 0x402440
mov ecx, dword [ebp - 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x402463
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test edi, edi
jne 0x4023e0
mov ecx, dword [ebp + 8]
push ecx
call esi
lea ecx, [ebp - 0x34]
call fcn.004178c9
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4024b0
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
jmp 0x4024b0
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea ecx, [ebp - 0x34]
call fcn.004178c9
lea ecx, [ebp - 0x34]
mov byte [ebp - 4], 0
call fcn.00417d8f
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4024e2
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x403d70
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x403d8b
pop edi
pop ebx
pop ebp
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x403dc2
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp + 0x10]
add eax, esi
and ecx, 0xf
jbe 0x403dbe
jmp 0x403db0
cmp esi, eax
jae 0x403dc2
dec ecx
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x403db0
cmp esi, eax
jb 0x403dc9
pop esi
pop edi
xor eax, eax
pop ebx
pop ebp
ret
movzx eax, word [esi]
neg eax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x407780
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [0x5964b8]
sub esp, 8
cmp eax, 0xff
jne 0x40796c
push ebx
lea eax, [ebp - 8]
push eax
mov dword [0x5964b8], 0
mov dword [ebp - 8], 0
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
cmp dword [ebp - 8], 2
mov ebx, eax
jl 0x407966
mov ecx, dword [ebx + 4]
push ecx
lea ecx, [ebp - 4]
call fcn.004040f0
mov ecx, dword [ebp - 4]
cmp dword [ecx - 0xc], 0
jl 0x407940
push str.1_create
push ecx
call fcn.00517220
mov ecx, dword [ebp - 4]
add esp, 8
test eax, eax
je 0x40780b
sub eax, ecx
sar eax, 1
cmp eax, 0xffffffff
je 0x40780b
mov dword [0x5964b8], 1
jmp 0x407940
cmp dword [ecx - 0xc], 0
jl 0x407940
push str.2_create_silent
push ecx
call fcn.00517220
mov ecx, dword [ebp - 4]
add esp, 8
test eax, eax
je 0x407842
sub eax, ecx
sar eax, 1
cmp eax, 0xffffffff
je 0x407842
mov dword [0x5964b8], 2
jmp 0x407940
cmp dword [ecx - 0xc], 0
jl 0x407940
push str.3_delete
push ecx
call fcn.00517220
mov ecx, dword [ebp - 4]
add esp, 8
test eax, eax
je 0x407879
sub eax, ecx
sar eax, 1
cmp eax, 0xffffffff
je 0x407879
mov dword [0x5964b8], 3
jmp 0x407940
cmp dword [ecx - 0xc], 0
jl 0x407940
push str.4_new
push ecx
call fcn.00517220
mov ecx, dword [ebp - 4]
add esp, 8
test eax, eax
je 0x4078b0
sub eax, ecx
sar eax, 1
cmp eax, 0xffffffff
je 0x4078b0
mov dword [0x5964b8], 4
jmp 0x407940
cmp dword [ecx - 0xc], 0
jl 0x407940
push str.5_new_silent
push ecx
call fcn.00517220
mov ecx, dword [ebp - 4]
add esp, 8
test eax, eax
je 0x4078e4
sub eax, ecx
sar eax, 1
cmp eax, 0xffffffff
je 0x4078e4
mov dword [0x5964b8], 5
jmp 0x407940
cmp dword [ecx - 0xc], 0
jl 0x407940
push str.4_update
push ecx
call fcn.00517220
mov ecx, dword [ebp - 4]
add esp, 8
test eax, eax
je 0x407914
sub eax, ecx
sar eax, 1
cmp eax, 0xffffffff
je 0x407914
mov dword [0x5964b8], 6
jmp 0x407940
cmp dword [ecx - 0xc], 0
jl 0x407940
push str.5_update_silent
push ecx
call fcn.00517220
add esp, 8
test eax, eax
je 0x407940
sub eax, dword [ebp - 4]
sar eax, 1
cmp eax, 0xffffffff
je 0x407940
mov dword [0x5964b8], 7
push ebx
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, dword [ebp - 4]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x407966
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [0x5964b8]
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40a550
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2004
call fcn.005194d0
mov eax, dword [0x594ca8]
xor eax, ebp
mov dword [ebp - 4], eax
xor eax, eax
push 0x1ffe
push eax
lea ecx, [ebp - 0x2002]
push ecx
mov word [ebp - 0x2004], ax
call fcn.00518ea0
mov edx, dword [ebp + 8]
add esp, 0xc
push 1
push edx
lea eax, [ebp - 0x2004]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x40a5c0
lea eax, [ebp - 0x2004]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x40a5a7
sub eax, edx
sar eax, 1
push eax
lea ecx, [ebp - 0x2004]
push ecx
jmp 0x40a5c7
push 0
push 0x5704e4
mov ecx, esi
call fcn.004046e0
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0051553d
mov esp, ebp
pop ebp
ret
Function at 0x40afa0
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5422e8
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push esi
push edi
mov eax, dword [0x594ca8]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 0
call dword [sym.imp.ole32.dll_CoInitialize]
mov esi, dword [ebp + 8]
test esi, esi
jne 0x40afea
mov dword [0x59cd00], 1
mov dword [0x59cba0], 0xffffffff
lea eax, [ebp - 0x14]
push eax
call fcn.00407970
mov dword [ebp - 4], 0
call fcn.00407f60
call fcn.00408250
call fcn.00408540
push esi
call fcn.00408860
add esp, 8
call fcn.00408bd0
test esi, esi
jne 0x40b02f
mov dword [0x59cd00], 2
mov dword [0x59cba0], 0xfffffffe
call fcn.00417515
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x40b049
push 0x80004005
call fcn.00404860
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x10], eax
lea esi, [ebp - 0x10]
mov byte [ebp - 4], 1
call fcn.00402240
mov esi, dword [ebp - 0x10]
push 0x5c
push esi
call fcn.00517280
add esp, 8
test eax, eax
jne 0x40b07b
or eax, 0xffffffff
jmp 0x40b07f
sub eax, esi
sar eax, 1
push eax
lea ecx, [ebp - 0x1c]
push ecx
lea ecx, [ebp - 0x10]
call fcn.004037c0
push str.exe
push eax
lea edx, [ebp - 0x18]
push edx
mov byte [ebp - 4], 2
call fcn.00404260
add esp, 0xc
push eax
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 3
call fcn.00404790
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40b0d2
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x1c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40b0f5
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [ebp - 0x14]
push 0
push ecx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
push 1
push ecx
lea edx, [ebp - 0x14]
mov dword [ebp - 0x20], esp
mov ecx, esp
push edx
call fcn.00404900
push ecx
lea eax, [ebp - 0x10]
mov dword [ebp - 0x24], esp
mov ecx, esp
push eax
mov byte [ebp - 4], 4
call fcn.00404900
mov byte [ebp - 4], 1
call fcn.00402a90
push 1
push 1
lea edi, [ebp - 0x14]
call fcn.00408e40
mov ecx, edi
push 1
push ecx
call fcn.00409670
add esp, 0x1c
cmp dword [ebp + 8], 0
jne 0x40b157
call fcn.0040b710
call fcn.0040bbb0
call dword [sym.imp.ole32.dll_CoUninitialize]
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40b180
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40b1a6
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x40b1c0
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
mov edi, dword [sym.imp.USER32.dll_FindWindowW]
push str.1905Daemon.exe
xor ebx, ebx
push ebx
call edi
mov esi, dword [sym.imp.USER32.dll_SendMessageW]
cmp eax, ebx
je 0x40b201
xor ecx, ecx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], ecx
mov dword [ebp - 4], ecx
lea ecx, [ebp - 0xc]
push ecx
push ebx
push 0x4a
push eax
mov dword [ebp - 0xc], ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 4], ebx
call esi
push 0x570c84
push ebx
call edi
cmp eax, ebx
je 0x40b22b
lea edx, [ebp - 0xc]
push edx
push ebx
xor ecx, ecx
push 0x4a
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], ecx
mov dword [ebp - 4], ecx
push eax
mov dword [ebp - 0xc], ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 4], ebx
call esi
push str.1905Tray.exe
push ebx
call edi
cmp eax, ebx
je 0x40b242
push ebx
push ebx
push 0x10
push eax
call dword [sym.imp.USER32.dll_PostMessageW]
mov edi, dword [sym.imp.KERNEL32.dll_OpenMutexW]
push str.1905Daemon.exe
push 1
push 0x1f0001
call edi
mov esi, eax
cmp esi, ebx
je 0x40b26c
push 0xffffffffffffffff
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push str.1905Client.exe
push 1
push 0x1f0001
call edi
mov esi, eax
cmp esi, ebx
je 0x40b290
push 0xffffffffffffffff
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push str.1905Tray.exe
push 1
push 0x1f0001
call edi
mov esi, eax
cmp esi, ebx
je 0x40b2b4
push 0xffffffffffffffff
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40b4e0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x54185d
mov eax, dword fs:[0]
push eax
sub esp, 0x11c
mov eax, dword [0x594ca8]
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
xor ebx, ebx
mov dword [ebp - 4], ebx
mov esi, ecx
push 0x5704e4
mov dword [ebp - 0x11c], esi
mov dword [ebp - 0x128], ebx
call fcn.004040f0
mov dword [ebp - 4], ebx
mov edi, 1
mov dword [ebp - 0x128], edi
call fcn.00417515
xor ecx, ecx
cmp eax, ebx
setne cl
cmp ecx, ebx
jne 0x40b553
push 0x80004005
call fcn.00404860
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x118], eax
push str.SoftwareMicrosoftWindowsCurrentVersionApp_Paths
lea ecx, [ebp - 0x118]
push str._s1905Key.exe
push ecx
mov dword [ebp - 4], edi
call fcn.00403cc0
push 0x103
lea edx, [ebp - 0x113]
push ebx
push edx
mov dword [ebp - 0x124], 0x104
mov byte [ebp - 0x114], bl
call fcn.00518ea0
mov eax, dword [ebp - 0x118]
add esp, 0x18
cmp eax, ebx
jne 0x40b5b1
xor eax, eax
jmp 0x40b5f9
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
add eax, edi
cmp eax, 0x3fffffff
jg 0x40b5f1
lea edi, [eax + eax]
mov eax, edi
call fcn.0051b880
mov esi, esp
cmp esi, ebx
je 0x40b5f1
mov eax, dword [ebp - 0x118]
push ebx
push ebx
push edi
push esi
push 0xffffffffffffffff
push eax
push ebx
push 3
mov byte [esi], bl
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
neg eax
sbb eax, eax
and eax, esi
jmp 0x40b5f3
xor eax, eax
mov esi, dword [ebp - 0x11c]
lea ecx, [ebp - 0x120]
push ecx
push 1
push ebx
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x40b6be
mov ecx, dword [ebp - 0x120]
lea edx, [ebp - 0x124]
push edx
lea eax, [ebp - 0x114]
push eax
push ebx
push ebx
push 0x570674
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x40b6be
mov edx, dword [ebp - 0x120]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp - 0x114]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea edi, [eax + 1]
cmp edi, 0x3fffffff
jg 0x40b707
lea eax, [edi + edi]
call fcn.0051b880
mov esi, esp
cmp esi, ebx
je 0x40b707
push edi
push esi
push 0xffffffffffffffff
lea edx, [ebp - 0x114]
push edx
push ebx
xor ecx, ecx
push 3
mov word [esi], cx
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
cmp eax, ebx
je 0x40b707
mov eax, esi
mov edx, esi
lea esi, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x40b6a0
sub eax, esi
sar eax, 1
mov esi, dword [ebp - 0x11c]
push eax
push edx
mov ecx, esi
call fcn.004046e0
mov byte [ebp - 4], bl
mov eax, dword [ebp - 0x118]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40b6e3
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, esi
lea esp, [ebp - 0x138]
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.0051553d
mov esp, ebp
pop ebp
ret
xor edx, edx
xor eax, eax
jmp 0x40b6af
Function at 0x40b980
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x54185d
mov eax, dword fs:[0]
push eax
sub esp, 0x11c
mov eax, dword [0x594ca8]
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
xor ebx, ebx
mov dword [ebp - 4], ebx
mov esi, ecx
push 0x5704e4
mov dword [ebp - 0x11c], esi
mov dword [ebp - 0x128], ebx
call fcn.004040f0
mov dword [ebp - 4], ebx
mov edi, 1
mov dword [ebp - 0x128], edi
call fcn.00417515
xor ecx, ecx
cmp eax, ebx
setne cl
cmp ecx, ebx
jne 0x40b9f3
push 0x80004005
call fcn.00404860
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x118], eax
push str.SoftwareMicrosoftWindowsCurrentVersionApp_Paths
lea ecx, [ebp - 0x118]
push str._s1905Key.exe
push ecx
mov dword [ebp - 4], edi
call fcn.00403cc0
push 0x103
lea edx, [ebp - 0x113]
push ebx
push edx
mov dword [ebp - 0x124], 0x104
mov byte [ebp - 0x114], bl
call fcn.00518ea0
mov eax, dword [ebp - 0x118]
add esp, 0x18
cmp eax, ebx
jne 0x40ba51
xor eax, eax
jmp 0x40ba99
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
add eax, edi
cmp eax, 0x3fffffff
jg 0x40ba91
lea edi, [eax + eax]
mov eax, edi
call fcn.0051b880
mov esi, esp
cmp esi, ebx
je 0x40ba91
mov eax, dword [ebp - 0x118]
push ebx
push ebx
push edi
push esi
push 0xffffffffffffffff
push eax
push ebx
push 3
mov byte [esi], bl
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
neg eax
sbb eax, eax
and eax, esi
jmp 0x40ba93
xor eax, eax
mov esi, dword [ebp - 0x11c]
lea ecx, [ebp - 0x120]
push ecx
push 1
push ebx
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x40bb5e
mov ecx, dword [ebp - 0x120]
lea edx, [ebp - 0x124]
push edx
lea eax, [ebp - 0x114]
push eax
push ebx
push ebx
push 0x571120
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x40bb5e
mov edx, dword [ebp - 0x120]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp - 0x114]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea edi, [eax + 1]
cmp edi, 0x3fffffff
jg 0x40bba7
lea eax, [edi + edi]
call fcn.0051b880
mov esi, esp
cmp esi, ebx
je 0x40bba7
push edi
push esi
push 0xffffffffffffffff
lea edx, [ebp - 0x114]
push edx
push ebx
xor ecx, ecx
push 3
mov word [esi], cx
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
cmp eax, ebx
je 0x40bba7
mov eax, esi
mov edx, esi
lea esi, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x40bb40
sub eax, esi
sar eax, 1
mov esi, dword [ebp - 0x11c]
push eax
push edx
mov ecx, esi
call fcn.004046e0
mov byte [ebp - 4], bl
mov eax, dword [ebp - 0x118]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40bb83
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, esi
lea esp, [ebp - 0x138]
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.0051553d
mov esp, ebp
pop ebp
ret
xor edx, edx
xor eax, eax
jmp 0x40bb4f
Function at 0x40bf30
Capabilities:
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
push esi
push 0
push 0x80
push 3
push 0
push 1
push SysReAllocStringLen
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
jne 0x40bf59
xor eax, eax
pop esi
pop ebp
ret
push edi
push 0
push 0
push 0
push 2
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov edi, eax
test edi, edi
je 0x40bf89
push 0
push 0
push 0
push 4
push edi
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov ecx, dword [ebp + 8]
mov dword [ecx], eax
test eax, eax
jne 0x40bf8f
pop edi
xor eax, eax
pop esi
pop ebp
ret
push edi
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call edi
push esi
call edi
pop edi
mov eax, 1
pop esi
pop ebp
ret