joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10035310
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x10062068
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
push esi
mov esi, ecx
lea eax, [esp + 0xc]
mov ecx, dword [esi + 0x1c]
push eax
push ecx
call dword [sym.imp.USER32.dll_GetClientRect]
push 0
lea ecx, [esp + 0x20]
call fcn.1005b601
mov eax, dword [esi + 0xd0]
lea edx, [esp + 0x1c]
push eax
push eax
push edx
mov dword [esp + 0x44], 0
call fcn.10034cb0
mov eax, dword [esi + 0x4c]
mov ecx, dword [esi + 0x48]
add eax, 0x64
add esp, 0xc
add ecx, 0x64
mov dword [esp + 8], eax
lea eax, [esp + 4]
mov dword [esp + 4], ecx
push eax
lea ecx, [esp + 0x20]
call fcn.1005b52f
mov ecx, dword [esp + 4]
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0xc]
sub ecx, eax
add ecx, edx
mov eax, 0x88888889
imul ecx
add edx, ecx
push 1
sar edx, 4
mov ecx, edx
shr ecx, 0x1f
lea eax, [edx + ecx + 1]
xor edx, edx
test eax, eax
setl dl
dec edx
mov ecx, esi
and eax, edx
push eax
push 0
push 0
call fcn.10057e07
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 8]
sub ecx, eax
add ecx, edx
mov eax, 0x88888889
imul ecx
add edx, ecx
xor ecx, ecx
sar edx, 4
mov eax, edx
push 1
shr eax, 0x1f
lea eax, [edx + eax + 1]
test eax, eax
setl cl
dec ecx
and eax, ecx
mov ecx, esi
push eax
push 0
push 1
call fcn.10057e07
push 1
push 0
push 0
mov ecx, esi
call fcn.10057daf
push 1
push 0
push 1
mov ecx, esi
call fcn.10057daf
lea ecx, [esp + 0x1c]
mov dword [esp + 0x38], 0xffffffff
call fcn.1005b673
mov ecx, dword [esp + 0x30]
pop esi
mov dword fs:[0], ecx
add esp, 0x38
ret

Function at 0x10035490
Capabilities:
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x10062088
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
push esi
mov esi, ecx
push 0
lea ecx, [esp + 0x20]
call fcn.1005b601
push 0x3e8
lea eax, [esp + 0x20]
push 0x3e8
push eax
mov dword [esp + 0x44], 0
call fcn.10034cb0
mov ecx, dword [esi + 0x48]
mov eax, dword [esi + 0x4c]
add ecx, 0x64
add esp, 0xc
mov dword [esp + 4], ecx
lea ecx, [esp + 4]
add eax, 0x96
push ecx
lea ecx, [esp + 0x20]
mov dword [esp + 0xc], eax
call fcn.1005b52f
mov eax, dword [esi + 0x1c]
lea edx, [esp + 0xc]
push edx
push eax
call dword [sym.imp.USER32.dll_GetClientRect]
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x10]
sub eax, edx
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
shl eax, 3
cdq
idiv dword [esp + 8]
mov edx, dword [esp + 0xc]
mov ecx, eax
mov eax, dword [esp + 0x14]
sub eax, edx
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
shl eax, 3
cdq
idiv dword [esp + 4]
cmp dword [esp + 0x44], 1
jne 0x10035554
cmp dword [esp + 0x40], 1
jne 0x10035552
cmp ecx, eax
jge 0x10035554
mov eax, ecx
cmp eax, 0xc8
jge 0x10035560
mov eax, 0xc8
mov ecx, esi
mov dword [esi + 0xd0], eax
call fcn.10035310
mov ecx, dword [esi + 0x1c]
push 1
push 0
push ecx
call dword [sym.imp.USER32.dll_InvalidateRect]
lea ecx, [esp + 0x1c]
mov dword [esp + 0x38], 0xffffffff
call fcn.1005b673
mov ecx, dword [esp + 0x30]
pop esi
mov dword fs:[0], ecx
add esp, 0x38
ret 8
Function at 0x10035ce0
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x100620f3
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0xc], esi
call fcn.10056241
lea edi, [esi + 0x64]
mov dword [esp + 0x18], 0
mov dword [edi + 4], 0
mov dword [edi], vtable.CBrush.0
mov eax, dword [esp + 0x2c]
mov ebp, dword [esp + 0x24]
mov ecx, dword [esp + 0x30]
mov dword [esi + 0x3c], eax
mov eax, ebp
mov dword [esi], method.CEdit.virtual_0
mov dword [esi + 0x40], ecx
mov dword [esi + 0x44], 0
mov ecx, dword [eax]
lea edx, [esi + 0x48]
mov byte [esp + 0x18], 1
mov dword [edx], ecx
mov ecx, dword [eax + 4]
mov dword [edx + 4], ecx
mov ecx, dword [eax + 8]
mov dword [edx + 8], ecx
mov eax, dword [eax + 0xc]
mov ecx, dword [esp + 0x40]
mov dword [edx + 0xc], eax
mov eax, dword [esp + 0x44]
push eax
mov dword [esi + 0x5c], ecx
mov dword [esi + 0x60], eax
call dword [sym.imp.GDI32.dll_CreateSolidBrush]
push eax
mov ecx, edi
call fcn.1005b8a9
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x20]
push edx
push eax
push ebp
push 0x50800044
mov ecx, esi
call fcn.1005cdc5
test eax, eax
je 0x10035dfc
mov ecx, dword [esp + 0x3c]
call fcn.1005b8d6
mov ecx, dword [esi + 0x1c]
mov ebp, dword [sym.imp.USER32.dll_SendMessageA]
push 0
push eax
push 0x30
push ecx
mov dword [esi + 0x58], eax
call ebp
mov edi, dword [esp + 0x34]
test edi, edi
je 0x10035dc0
push edi
mov ecx, esi
call fcn.10058f20
mov ecx, esi
call fcn.10035f60
cmp dword [esp + 0x38], 1
jne 0x10035df5
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
mov edx, dword [esi + 0x1c]
push 0xffffffffffffffff
not ecx
dec ecx
push ecx
push 0xb1
push edx
call ebp
mov eax, dword [esi + 0x1c]
push 0
push 0
push 0xb7
push eax
call ebp
mov ecx, esi
call fcn.1005905b
mov ecx, dword [esp + 0x10]
mov eax, esi
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x10
ret 0x28
Function at 0x10038830
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp dword [esi + 0x10], 0xca
jne 0x10038863
push esi
call fcn.1003b940
mov eax, dword [esi + 0x40]
add esp, 4
test eax, eax
je 0x1003885c
mov dword [esi + 0x10], 0xcf
mov eax, 1
pop esi
ret
mov dword [esi + 0x10], 0xcb
mov eax, dword [esi + 0x10]
cmp eax, 0xcb
jne 0x100388e9
mov eax, dword [esi + 0x1b0]
mov ecx, dword [eax + 0x10]
test ecx, ecx
je 0x100388d2
mov eax, dword [esi + 8]
test eax, eax
je 0x10038887
push esi
call dword [eax]
add esp, 4
mov ecx, dword [esi + 0x1b0]
push esi
call dword [ecx]
add esp, 4
test eax, eax
je 0x100388ce
cmp eax, 2
je 0x100388d2
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x1003887a
cmp eax, 3
je 0x100388ad
cmp eax, 1
jne 0x1003887a
mov eax, dword [ecx + 4]
inc eax
mov dword [ecx + 4], eax
mov eax, dword [esi + 8]
mov ecx, dword [eax + 8]
mov edx, dword [eax + 4]
cmp edx, ecx
jl 0x1003887a
mov edx, dword [esi + 0x13c]
add edx, ecx
mov dword [eax + 8], edx
jmp 0x1003887a
xor eax, eax
pop esi
ret
mov eax, dword [esi + 0x90]
push esi
mov dword [esi + 0x98], eax
call fcn.10038910
add esp, 4
pop esi
ret
cmp eax, 0xcc
je 0x100388f8
mov ecx, dword [esi]
push esi
call dword [ecx]
add esp, 4
push esi
call fcn.10038910
add esp, 4
pop esi
ret

Function at 0x1005701d
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x10057055
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.100550ee
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.100550c6
jmp 0x10057061
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x1005870b
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x1005874d
call fcn.1005e0aa
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x1005874d
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x10058744
xor eax, eax
jmp 0x10058755
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.1005875b
pop edi
pop esi
pop ebx
ret 4

Function at 0x40a478
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
mov eax, 0x401000
call 0x40a478
lcall 0x5de5, 0x8b10c483
jmp loc.0080efdc
Function at 0xe751b0
Capabilities:
Acquire debug privileges

Disassembly:
push ecx
lea eax, [esp]
mov dword [esp], 0
push eax
push 0x20
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [esp]
push 1
push str.SeBackupPrivilege
push ecx
call fcn.00e75140
mov edx, dword [esp + 0xc]
push 1
push str.SeDebugPrivilege
push edx
call fcn.00e75140
mov eax, dword [esp + 0x18]
push 1
push str.SeRestorePrivilege
push eax
call fcn.00e75140
mov ecx, dword [esp + 0x24]
push 1
push str.SeSecurityPrivilege
push ecx
call fcn.00e75140
mov edx, dword [esp + 0x30]
add esp, 0x30
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
pop ecx
ret

Function at 0xe75bfa
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
lea eax, [ebp - 4]
push eax
push 0x20019
xor esi, esi
push esi
push str.CLSIDADB880A6_D8FF_11CF_9377_00AA003B7A11InprocServer32
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0xe75c50
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
mov dword [ebp - 8], 0x104
push esi
push esi
push 0xe8787c
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0xe75c43
inc esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
jmp 0xe75c52
xor eax, eax
pop esi
leave
ret 4
Function at 0x401000
Capabilities:
Encode data using xor

Disassembly:
push 0x746b65
push 0x52746547
mov edx, 1
cmp edx, 1
je 0x40104f
push 0x2e50621f
push 0x5e476853
push 0x174d1113
push 0x497e6f54
push 0x7173432b
push 0x71297648
push 0x267e247d
push 0x267a2167
push 0x5d764a5f
push 0x4948454c
mov esi, 0xa
xor ecx, ecx
jmp 0x401065
push 0x112f3c
push 0x342d686e
push 0x616a694f
mov esi, 3
xor ecx, ecx
xor eax, eax
mov al, byte [esp + ecx]
mov ah, cl
add ah, 7
xor al, ah
mov byte [esp + ecx], al
inc ecx
cmp al, 0
jne 0x401065
lea eax, [esp]
mov ebx, esi
imul ebx, ebx, 4
lea edx, [esp + ebx]
push 0
push edx
push eax
push 0
call 0x401099
xor ecx, ecx
mov ecx, esi
add ecx, 2
pop edx
loop 0x401096
jmp dword [sym.imp.USER32.dll_MessageBoxA]
Function at 0x4010f3
Capabilities:
Accept command line arguments
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x40f490
push 0x40e726
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x82c
push ebx
push esi
push edi
xor ebx, ebx
push ebx
call dword [sym.imp.ole32.dll_CoInitialize]
mov dword [0x414a10], 0x412050
mov eax, 0x4149a0
mov dword [0x414998], eax
mov dword [0x4149a0], 0x84
mov dword [0x414a04], 0x300
push dword [ebp + 8]
push 0x414a28
push eax
call fcn.0040143f
mov dword [ebp - 0x24], 1
mov dword [ebp - 0x1c], ebx
mov esi, 0x4120a4
lea edi, [ebp - 0x2c]
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
lea eax, [ebp - 0x2c]
push eax
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
push eax
call fcn.0040104b
pop ecx
pop ecx
mov esi, eax
cmp esi, ebx
je 0x401217
mov ebx, dword [sym.imp.MSVCRT.dll_strncmp]
push str.UnregServer
push esi
mov edi, dword [sym.imp.KERNEL32.dll_lstrcmpiA]
call edi
test eax, eax
je 0x401211
push str.RegServer
push esi
call edi
test eax, eax
je 0x401211
mov edi, 0x4120c0
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push str.auto
push esi
call ebx
add esp, 0xc
test eax, eax
jne 0x4011d4
and dword [0x4120a0], eax
jmp 0x4011fd
mov edi, 0x4120d0
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push str.scheduled
push esi
call ebx
add esp, 0xc
test eax, eax
jne 0x4011fd
mov dword [0x414a4c], 1
lea eax, [ebp - 0x2c]
push eax
push esi
call fcn.0040104b
pop ecx
pop ecx
mov esi, eax
test esi, esi
jne 0x40118f
jmp 0x401215
and dword [ebp - 0x24], 0
xor ebx, ebx
cmp dword [ebp - 0x24], ebx
je 0x4012e0
mov dword [ebp - 0x30], ebx
mov dword [ebp - 4], ebx
push str.SunJavaUpdateCheckerMutex
push 1
push ebx
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov dword [ebp - 0x30], eax
cmp eax, ebx
je 0x4012b6
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x4012b6
call fcn.0040ae53
test eax, eax
jne 0x4012ac
mov eax, dword [0x4149a8]
mov dword [ebp - 0x838], eax
mov edi, 0x400
push edi
lea ecx, [ebp - 0x830]
push ecx
push 0x72
push eax
mov esi, dword [sym.imp.USER32.dll_LoadStringA]
call esi
mov eax, dword [0x4149a8]
mov dword [ebp - 0x83c], eax
push edi
lea ecx, [ebp - 0x430]
push ecx
push 0x75
push eax
call esi
push 0x10
lea eax, [ebp - 0x830]
push eax
lea eax, [ebp - 0x430]
push eax
push ebx
call dword [sym.imp.USER32.dll_MessageBoxA]
mov dword [ebp - 0x1c], 0x80004005
jmp 0x4012d7
call fcn.0040108c
mov dword [ebp - 0x1c], eax
jmp 0x4012d7
mov dword [ebp - 0x1c], 0x64
cmp dword [ebp - 0x30], ebx
je 0x4012d7
cmp dword [0x4120a0], ebx
jne 0x4012d2
cmp dword [0x414a4c], ebx
je 0x4012d7
call fcn.0040cc46
or dword [ebp - 4], 0xffffffff
call fcn.00401306
push 0x4149a0
call fcn.004014c2
call dword [sym.imp.ole32.dll_CoUninitialize]
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
leave
ret 0x10
Function at 0x401bee
Capabilities:
Check internet connectivity via wininet
Connect to http server
Create http request
Parse url
Send data
Send http request

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x40f4b0
push 0x40e726
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x460
push ebx
push esi
push edi
push 1
pop ebx
mov dword [ebp - 0x124], ebx
mov dword [ebp - 0x130], 4
xor esi, esi
push esi
lea eax, [ebp - 0x20]
push eax
call dword [sym.imp.WININET.dll_InternetGetConnectedState]
test eax, eax
je 0x401c3f
mov eax, ebx
jmp 0x401dc2
push str.http:__java.sun.com
push 0x412224
lea eax, [ebp - 0x120]
push eax
call dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 0xc
mov dword [ebp - 4], esi
push esi
push esi
push esi
push esi
push 0x412228
call dword [sym.imp.WININET.dll_InternetOpenA]
mov dword [ebp - 0x1c], eax
cmp eax, esi
je 0x401db3
push 0xf
pop ecx
xor eax, eax
lea edi, [ebp - 0x26c]
rep stosd dword es:[edi], eax
mov dword [ebp - 0x26c], 0x3c
lea eax, [ebp - 0x230]
mov dword [ebp - 0x25c], eax
mov eax, 0x100
mov dword [ebp - 0x258], eax
mov word [ebp - 0x254], si
lea ecx, [ebp - 0x46c]
mov dword [ebp - 0x240], ecx
mov dword [ebp - 0x23c], eax
lea ecx, [ebp - 0x36c]
mov dword [ebp - 0x238], ecx
mov dword [ebp - 0x234], eax
lea eax, [ebp - 0x26c]
push eax
push esi
lea eax, [ebp - 0x120]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push eax
lea eax, [ebp - 0x120]
push eax
call dword [sym.imp.WININET.dll_InternetCrackUrlA]
push esi
push esi
push 3
push 0x414a70
push 0x414a74
push dword [ebp - 0x254]
push dword [ebp - 0x25c]
push dword [ebp - 0x1c]
call dword [sym.imp.WININET.dll_InternetConnectA]
mov dword [ebp - 0x12c], eax
cmp eax, esi
je 0x401db3
push esi
push 0x4400000
push esi
push 0x414a78
push 0x412230
lea ecx, [ebp - 0x46c]
push ecx
push 0x41223c
push eax
call dword [sym.imp.WININET.dll_HttpOpenRequestA]
mov edi, eax
mov dword [ebp - 0x128], edi
cmp edi, esi
je 0x401db3
push esi
push esi
push esi
push esi
push edi
call dword [sym.imp.WININET.dll_HttpSendRequestA]
test eax, eax
jne 0x401d85
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x470], eax
sub eax, 0x2ee2
je 0x401d7f
sub eax, 5
je 0x401d7f
sub eax, 0x16
jne 0x401d85
mov dword [ebp - 0x124], esi
mov dword [ebp - 0x20], esi
push esi
lea eax, [ebp - 0x130]
push eax
lea eax, [ebp - 0x20]
push eax
push 0x20000013
push edi
call dword [sym.imp.WININET.dll_HttpQueryInfoA]
test eax, eax
je 0x401db3
cmp dword [ebp - 0x20], 0x197
jne 0x401db3
mov dword [ebp - 0x124], ebx
or dword [ebp - 4], 0xffffffff
call fcn.00401dd3
mov eax, dword [ebp - 0x124]
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40427d
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x58
push esi
push edi
push 0x11
xor eax, eax
pop ecx
lea edi, [ebp - 0x58]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x14]
xor esi, esi
push eax
lea eax, [ebp - 0x58]
push eax
push esi
push esi
push esi
or dword [ebp - 4], 0xffffffff
push esi
push esi
push esi
push dword [ebp + 8]
mov dword [ebp - 0x58], 0x44
push esi
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x4042e8
push dword [ebp - 0x14]
call fcn.00404ace
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
test eax, eax
je 0x4042dd
cmp dword [ebp - 4], 0x669
jne 0x4042dd
mov dword [ebp - 4], esi
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x4042f1
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
pop edi
pop esi
leave
ret 4

Function at 0x408379
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x104
push ebx
push esi
mov esi, dword [ebp + 8]
xor ebx, ebx
push edi
mov edi, dword [sym.imp.KERNEL32.dll_CreateEventA]
push ebx
mov dword [esi + 0xc], 0xbc2
mov eax, dword [0x4149a4]
push ebx
push 1
push ebx
mov dword [esi + 0x18], eax
call edi
push ebx
push ebx
push 1
push ebx
mov dword [esi + 0x20], eax
call edi
push ebx
push ebx
push 1
push ebx
mov dword [esi + 0x24], eax
call edi
mov dword [esi + 0x34], eax
call fcn.0040a079
mov dword [esi + 0x38], eax
call fcn.0040cc35
push dword [esi + 0x20]
mov edi, dword [sym.imp.KERNEL32.dll_ResetEvent]
mov dword [esi + 0x3c], eax
call edi
push dword [esi + 0x24]
call edi
push dword [esi + 0x34]
call edi
lea eax, [ebp + 8]
push eax
push ebx
push esi
push 0x408879
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateThread]
push 0xffffffffffffffff
push dword [esi + 0x20]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push dword [esi + 0x20]
call edi
mov edi, dword [sym.imp.USER32.dll_LoadStringA]
mov ebx, 0x104
lea eax, [esi + 0x54]
push ebx
push eax
push 0x7b
push dword [esi + 0x18]
call edi
lea eax, [ebp - 0x104]
push ebx
push eax
push 0x7c
push dword [esi + 0x18]
call edi
lea eax, [ebp - 0x104]
push 1
push eax
mov ecx, esi
call fcn.004085a0
pop edi
pop esi
xor eax, eax
pop ebx
leave
ret 4
Function at 0x408f1f
Capabilities:
Query or enumerate registry value

Disassembly:
mov eax, 0x40edec
call sub.MSVCRT.dll__EH_prolog
sub esp, 0x14
push ebx
xor ebx, ebx
push esi
push edi
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x14], ebx
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
lea eax, [ebp - 0x20]
mov edi, 0x20019
push eax
push edi
push ebx
push 0x4129fc
push reloc.OLEAUT32.dll_SysReAllocString
mov byte [ebp - 4], 3
mov dword [ebp - 0x20], ebx
call esi
cmp eax, ebx
jne 0x408fc8
lea ecx, [ebp - 0x1c]
call fcn.0040c520
mov ecx, dword [ebp - 0x20]
cmp eax, ebx
mov dword [ebp - 0x1c], ecx
jne 0x408fc8
lea eax, [ebp - 0x20]
mov dword [ebp - 0x20], ebx
push eax
push edi
push ebx
push 0x412a08
push ecx
call esi
cmp eax, ebx
jne 0x408fc8
lea ecx, [ebp - 0x10]
call fcn.0040c520
mov ecx, dword [ebp - 0x20]
cmp eax, ebx
mov dword [ebp - 0x10], ecx
jne 0x408fc8
lea eax, [ebp - 0x20]
mov dword [ebp - 0x20], ebx
push eax
push edi
push ebx
push 0x412a14
push ecx
call esi
cmp eax, ebx
jne 0x408fc8
lea ecx, [ebp - 0x18]
call fcn.0040c520
mov ecx, dword [ebp - 0x20]
cmp eax, ebx
mov dword [ebp - 0x18], ecx
je 0x408ffc
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 2
call fcn.0040c520
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 1
call fcn.0040c520
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], bl
call fcn.0040c520
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1c]
call fcn.0040c520
jmp 0x409099
lea eax, [ebp - 0x20]
mov dword [ebp - 0x20], ebx
push eax
push edi
push ebx
push 0x412a20
push ecx
call esi
cmp eax, ebx
jne 0x409023
lea ecx, [ebp - 0x14]
call fcn.0040c520
mov ecx, dword [ebp - 0x20]
cmp eax, ebx
mov dword [ebp - 0x14], ecx
je 0x409046
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 2
call fcn.0040c520
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 1
call fcn.0040c520
cmp dword [ebp - 0x10], ebx
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x409085
push dword [ebp + 0x10]
lea eax, [ebp - 0x20]
mov dword [ebp - 0x20], ebx
push dword [ebp + 0xc]
push eax
push ebx
push dword [ebp + 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x40909d
cmp dword [ebp - 0x14], ebx
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
je 0x409075
push dword [ebp - 0x14]
call esi
mov dword [ebp - 0x14], ebx
cmp dword [ebp - 0x18], ebx
je 0x409082
push dword [ebp - 0x18]
call esi
mov dword [ebp - 0x18], ebx
cmp dword [ebp - 0x10], ebx
je 0x40908f
push dword [ebp - 0x10]
call esi
mov dword [ebp - 0x10], ebx
cmp dword [ebp - 0x1c], ebx
je 0x409099
push dword [ebp - 0x1c]
call esi
xor eax, eax
jmp 0x4090d7
cmp dword [ebp - 0x14], ebx
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
je 0x4090b0
push dword [ebp - 0x14]
call esi
mov dword [ebp - 0x14], ebx
cmp dword [ebp - 0x18], ebx
je 0x4090bd
push dword [ebp - 0x18]
call esi
mov dword [ebp - 0x18], ebx
cmp dword [ebp - 0x10], ebx
je 0x4090ca
push dword [ebp - 0x10]
call esi
mov dword [ebp - 0x10], ebx
cmp dword [ebp - 0x1c], ebx
je 0x4090d4
push dword [ebp - 0x1c]
call esi
push 1
pop eax
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x40a5a3
Capabilities:
Query or enumerate registry value

Disassembly:
mov eax, 0x40eee0
call sub.MSVCRT.dll__EH_prolog
sub esp, 0x14
push ebx
xor ebx, ebx
push esi
push edi
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x14], ebx
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
lea eax, [ebp - 0x20]
mov edi, 0x20019
push eax
push edi
push ebx
push 0x412e4c
push reloc.OLEAUT32.dll_SysReAllocString
mov byte [ebp - 4], 3
mov dword [ebp - 0x20], ebx
call esi
cmp eax, ebx
jne 0x40a677
lea ecx, [ebp - 0x1c]
call fcn.0040c520
mov ecx, dword [ebp - 0x20]
cmp eax, ebx
mov dword [ebp - 0x1c], ecx
jne 0x40a677
lea eax, [ebp - 0x20]
mov dword [ebp - 0x20], ebx
push eax
push edi
push ebx
push 0x412e58
push ecx
call esi
cmp eax, ebx
jne 0x40a677
lea ecx, [ebp - 0x10]
call fcn.0040c520
mov ecx, dword [ebp - 0x20]
cmp eax, ebx
mov dword [ebp - 0x10], ecx
jne 0x40a677
lea eax, [ebp - 0x20]
mov dword [ebp - 0x20], ebx
push eax
push edi
push ebx
push 0x412e64
push ecx
call esi
cmp eax, ebx
jne 0x40a677
lea ecx, [ebp - 0x18]
call fcn.0040c520
mov ecx, dword [ebp - 0x20]
cmp eax, ebx
mov dword [ebp - 0x18], ecx
jne 0x40a677
lea eax, [ebp - 0x20]
mov dword [ebp - 0x20], ebx
push eax
push edi
push ebx
push 0x412e70
push ecx
call esi
cmp eax, ebx
jne 0x40a677
lea ecx, [ebp - 0x14]
call fcn.0040c520
mov ecx, dword [ebp - 0x20]
cmp eax, ebx
mov dword [ebp - 0x14], ecx
je 0x40a6a8
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 2
call fcn.0040c520
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 1
call fcn.0040c520
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], bl
call fcn.0040c520
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1c]
call fcn.0040c520
jmp 0x40a726
lea eax, [ebp + 0xc]
mov dword [ebp - 0x20], ebx
push eax
lea eax, [ebp - 0x20]
push dword [ebp + 8]
push eax
push ebx
push 0x412e78
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
cmp eax, ebx
je 0x40a6ea
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 2
call fcn.0040c520
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 1
call fcn.0040c520
cmp dword [ebp - 0x10], ebx
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x40a712
cmp dword [ebp + 0xc], ebx
jne 0x40a72d
cmp dword [ebp - 0x14], ebx
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
je 0x40a702
push dword [ebp - 0x14]
call esi
mov dword [ebp - 0x14], ebx
cmp dword [ebp - 0x18], ebx
je 0x40a70f
push dword [ebp - 0x18]
call esi
mov dword [ebp - 0x18], ebx
cmp dword [ebp - 0x10], ebx
je 0x40a71c
push dword [ebp - 0x10]
call esi
mov dword [ebp - 0x10], ebx
cmp dword [ebp - 0x1c], ebx
je 0x40a726
push dword [ebp - 0x1c]
call esi
mov eax, 0x80004005
jmp 0x40a766
cmp dword [ebp - 0x14], ebx
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
je 0x40a740
push dword [ebp - 0x14]
call esi
mov dword [ebp - 0x14], ebx
cmp dword [ebp - 0x18], ebx
je 0x40a74d
push dword [ebp - 0x18]
call esi
mov dword [ebp - 0x18], ebx
cmp dword [ebp - 0x10], ebx
je 0x40a75a
push dword [ebp - 0x10]
call esi
mov dword [ebp - 0x10], ebx
cmp dword [ebp - 0x1c], ebx
je 0x40a764
push dword [ebp - 0x1c]
call esi
xor eax, eax
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret