joyce8/EMBER2024-capa huggingface dataset:
Function at 0x460345
Capabilities:
Capture webcam image

Disassembly:
sub esp, 0x44
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov eax, dword [esi + 0x3c]
test eax, eax
je 0x46045d
push eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x46045d
mov eax, dword [esi + 0x3c]
push eax
call fcn.0047a0f9
mov esi, eax
test esi, esi
je 0x46045d
mov ebx, dword [esp + 0x58]
mov ecx, dword [esi + 0x1c]
mov ebp, dword [sym.imp.USER32.dll_SendMessageA]
push 0
push ebx
push 0x419
push ecx
call ebp
mov edi, eax
test edi, edi
jl 0x46045d
mov ecx, esi
call fcn.004602b0
cmp edi, eax
jge 0x46045d
mov eax, dword [esi + 0xc4]
mov edx, dword [esi + 0xc0]
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x5c]
xor ecx, ecx
mov dword [esp + 0x28], edx
cmp eax, ecx
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], ecx
mov dword [esp + 0x4c], ecx
mov dword [esp + 0x50], ecx
mov dword [esp + 0x38], edi
jne 0x4603e3
mov dword [esp + 0x34], 1
jmp 0x46043e
mov edx, dword [esi + 0x1c]
lea ecx, [esp + 0x18]
push ecx
push ebx
push 0x433
push edx
call ebp
test eax, eax
je 0x46045d
mov eax, dword [esp + 0x60]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x24]
mov dword [esp + 0x10], ecx
mov dword [eax], 0
mov ecx, dword [esi + 0x1c]
lea eax, [esp + 0x10]
add edx, 2
push eax
push ecx
mov dword [esp + 0x1c], edx
call dword [sym.imp.USER32.dll_ClientToScreen]
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x14]
mov dword [esp + 0x34], 3
mov dword [esp + 0x3c], edx
mov dword [esp + 0x40], eax
xor ecx, ecx
push ecx
lea ecx, [esp + 0x2c]
push ecx
push 0x7d8
call fcn.0045eb00
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x44
ret 0xc
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x44
ret 0xc

Function at 0x463fb0
Capabilities:
Check for time delay via gettickcount

Disassembly:
sub esp, 0xa0
push ebx
push ebp
mov ebp, dword [esp + 0xac]
push esi
push edi
push ebp
call sub.RASAPI32.dll_RasHangUpA
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, 0x28
xor eax, eax
lea edi, [esp + 0x10]
rep stosd dword es:[edi], eax
mov dword [esp + 0x10], 0xa0
call esi
mov edi, eax
call esi
sub eax, edi
cmp eax, 0xbb8
jae 0x464016
mov ebx, dword [sym.imp.KERNEL32.dll_Sleep]
lea eax, [esp + 0x10]
push eax
push ebp
call sub.RASAPI32.dll_RasGetConnectStatusA
cmp eax, 6
je 0x464016
push 0
call ebx
call esi
sub eax, edi
cmp eax, 0xbb8
jb 0x463ff7
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xa0
ret
Function at 0x464810
Capabilities:
Get socket status

Disassembly:
sub esp, 0x10c
mov eax, dword [ecx]
lea ecx, [esp]
push ecx
push 0
lea edx, [esp + 0x10]
push 0
push edx
push 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x20], eax
mov dword [esp + 0x1c], 1
call sub.WS2_32.dll_select
cmp eax, 0xffffffff
jne 0x464859
xor eax, eax
add esp, 0x10c
ret 4
mov edx, dword [esp + 0x110]
xor ecx, ecx
test eax, eax
setne cl
mov dword [edx], ecx
mov eax, 1
add esp, 0x10c
ret 4

Function at 0x464cd0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4873e0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push esi
mov esi, ecx
lea ecx, [esp + 4]
call fcn.00464880
lea eax, [esp + 4]
lea ecx, [esi + 4]
push eax
mov dword [esp + 0x18], 0
call fcn.00464900
lea ecx, [esp + 4]
push ecx
lea ecx, [esi + 0x14]
call fcn.00464900
lea ecx, [esi + 0xc]
call fcn.00478683
lea ecx, [esi + 0x10]
call fcn.00478683
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x1c]
call fcn.00465e90
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x30]
call fcn.00465e90
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x44]
call fcn.00465e90
lea ecx, [esp + 8]
mov dword [esp + 0x14], 1
call fcn.004786f8
lea ecx, [esp + 4]
mov dword [esp + 0x14], 0xffffffff
call fcn.004786f8
mov ecx, dword [esp + 0xc]
pop esi
mov dword fs:[0], ecx
add esp, 0x14
ret
Function at 0x47aa9c
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x47aad4
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.00478b53
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.00478b2b
jmp 0x47aae0
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x47c191
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 0x47c1d3
call fcn.00481d44
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x47c1d3
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x47c1ca
xor eax, eax
jmp 0x47c1db
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.0047c1e1
pop edi
pop esi
pop ebx
ret 4

Function at 0x482274
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x4822a2
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x4822c0
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.004821da
jmp 0x4822c0
mov eax, dword [esi + 0x14]
test eax, eax
je 0x4822c0
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.004821da
test edi, edi
mov eax, edi
jne 0x4822aa
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x4032b0
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
push 0xffffffffffffffff
push 0x587e98
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push esi
push edi
mov eax, dword [0x61c948]
xor eax, esp
push eax
lea eax, [esp + 0x1c]
mov dword fs:[0], eax
xor ebx, ebx
cmp byte [0x654cbc], bl
je 0x4033ec
mov dword [esp + 0x14], ebx
xor edi, edi
mov dword [esp + 0x10], ebx
push ebx
lea eax, [esp + 0x14]
push eax
push ebx
mov dword [esp + 0x30], ebx
call sub.DSOUND.dll_DirectSoundCreate
test eax, eax
jl 0x403362
mov eax, dword [esp + 0x10]
mov edx, dword [esp + 0x2c]
mov edx, dword [edx + 0x1c]
mov ecx, dword [eax]
push 1
push edx
push eax
mov eax, dword [ecx + 0x18]
call eax
test eax, eax
jl 0x403362
mov eax, dword [esp + 0x10]
mov ecx, dword [eax]
lea edx, [esp + 0x14]
push edx
push eax
mov eax, dword [ecx + 0x20]
call eax
test eax, eax
jl 0x403362
mov eax, dword [esp + 0x14]
cmp eax, 7
ja case.0x40333a.1
jmp dword [eax*4 + 0x403404]
mov edi, 6
jmp 0x403362
mov edi, 1
jmp 0x403362
mov edi, 4
jmp 0x403362
mov edi, 5
jmp 0x403362
mov edi, 2
mov dword [esp + 0x24], 0xffffffff
mov eax, dword [esp + 0x10]
cmp eax, ebx
je 0x40337a
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
lea esi, [esp + 0x2c]
mov dword [esp + 0x2c], ebx
call fcn.00409d40
test eax, eax
mov esi, dword [esp + 0x2c]
jne 0x4033e1
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x30]
push ecx
lea edx, [esp + 0x20]
push edx
push ebx
push str.AUDIO
push esi
mov dword [esp + 0x44], ebx
mov dword [esp + 0x28], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp eax, ebx
jge 0x4033c1
mov dword [esp + 0x2c], ebx
jmp 0x4033c7
cmp dword [esp + 0x2c], edi
ja 0x4033e1
push 4
lea eax, [esp + 0x1c]
push eax
push 4
push ebx
push str.AUDIO
push esi
mov dword [esp + 0x30], edi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
cmp esi, ebx
je 0x4033ec
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x1c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x18
ret 4
Function at 0x4056a0
Capabilities:
Get geographical location

Disassembly:
sub esp, 0xb8
mov eax, dword [0x61c948]
xor eax, esp
mov dword [esp + 0xb4], eax
push ebp
push edi
xor ebp, ebp
cmp dword [0x654cb8], ebp
mov edi, ecx
mov dword [esp + 0x10], edi
ja 0x4056e0
pop edi
or eax, 0xffffffff
pop ebp
mov ecx, dword [esp + 0xb4]
xor ecx, esp
call fcn.004721e8
add esp, 0xb8
ret
mov eax, dword [edi + 0x84]
push ebx
push esi
lea edx, [esp + 0x20]
push edx
lea edx, [esp + 0x20]
push edx
lea edx, [esp + 0x18]
mov dword [esp + 0x18], ebp
mov dword [esp + 0x24], ebp
mov ecx, dword [eax]
push edx
push eax
mov eax, dword [ecx + 0x24]
call eax
test eax, eax
jl 0x4057fc
xor esi, esi
cmp dword [esp + 0x10], ebp
jbe 0x405755
jmp 0x405720
mov eax, dword [edi + 0x84]
mov ecx, dword [eax]
lea edx, [esp + 0x14]
push edx
push esi
push eax
mov eax, dword [ecx + 0x38]
call eax
test eax, eax
jl 0x40574c
mov eax, dword [esp + 0x14]
cmp eax, ebp
je 0x40574c
cmp eax, dword [0x654cb8]
je 0x405818
add esi, 1
cmp esi, dword [esp + 0x10]
jb 0x405720
push 0x4e
lea ecx, [esp + 0x7a]
push ebp
push ecx
mov word [esp + 0x80], bp
call fcn.004727f0
mov eax, dword [0x654cb8]
mov edi, dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
add esp, 0xc
push 0x28
lea edx, [esp + 0x78]
push edx
push 0x1001
push eax
call edi
test eax, eax
jle 0x4057fc
xor ebx, ebx
cmp dword [esp + 0x10], ebp
jbe 0x4057fc
mov ecx, dword [esp + 0x18]
mov eax, dword [ecx + 0x84]
mov edx, dword [eax]
mov edx, dword [edx + 0x38]
lea ecx, [esp + 0x14]
push ecx
push ebx
push eax
call edx
test eax, eax
jl 0x4057f3
mov esi, dword [esp + 0x14]
cmp esi, ebp
je 0x4057f3
push 0x4e
lea eax, [esp + 0x2a]
push ebp
push eax
mov word [esp + 0x30], bp
call fcn.004727f0
add esp, 0xc
push 0x28
lea ecx, [esp + 0x28]
push ecx
push 0x1001
push esi
call edi
test eax, eax
jle 0x4057f3
lea edx, [esp + 0x24]
push edx
lea eax, [esp + 0x78]
push eax
call dword [sym.imp.SHLWAPI.dll_StrCmpW]
test eax, eax
je 0x40581c
add ebx, 1
cmp ebx, dword [esp + 0x10]
jb 0x405793
or eax, 0xffffffff
mov ecx, dword [esp + 0xc4]
pop esi
pop ebx
pop edi
pop ebp
xor ecx, esp
call fcn.004721e8
add esp, 0xb8
ret
mov eax, esi
jmp 0x4057ff
mov eax, ebx
jmp 0x4057ff
Function at 0x409950
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push edi
mov edi, dword [esp + 0x10]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x409969
pop edi
pop ebx
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x4099a4
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [esp + 0x18]
add eax, esi
and ecx, 0xf
jbe 0x4099a0
lea ebx, [ebx]
cmp esi, eax
jae 0x4099a4
sub ecx, 1
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x409990
cmp esi, eax
jb 0x4099aa
pop esi
pop edi
xor eax, eax
pop ebx
ret
mov ax, word [esi]
neg ax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebx
ret

Function at 0x409d00
Capabilities:
Query or enumerate registry value

Disassembly:
push ecx
lea eax, [esp]
push eax
mov eax, dword [esp + 0x10]
push ecx
mov ecx, dword [esp + 0x10]
lea edx, [esp + 0x14]
push edx
mov edx, dword [ecx]
push 0
push eax
push edx
mov dword [esp + 0x18], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x409d39
mov eax, dword [esp + 0xc]
sub eax, 4
neg eax
sbb eax, eax
and eax, 0xd
pop ecx
ret 8

Function at 0x409e40
Capabilities:
Query or enumerate registry value

Disassembly:
push esi
mov esi, dword [esp + 0xc]
push edi
mov edi, dword [esp + 0x14]
mov eax, dword [edi]
add eax, eax
lea edx, [esp + 0x14]
push edx
mov edx, dword [esp + 0x10]
push esi
mov dword [esp + 0x1c], eax
lea eax, [esp + 0x18]
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 0x409eb6
mov eax, dword [esp + 0x10]
cmp eax, 1
je 0x409e85
cmp eax, 2
jne 0x409ea1
test esi, esi
mov eax, dword [esp + 0x14]
je 0x409eb0
test eax, eax
je 0x409eab
test al, 1
jne 0x409ea1
mov ecx, eax
shr ecx, 1
cmp word [esi + ecx*2 - 2], 0
je 0x409eb0
pop edi
mov eax, 0xd
pop esi
ret 0xc
mov word [esi], 0
shr eax, 1
mov dword [edi], eax
xor eax, eax
pop edi
pop esi
ret 0xc
Function at 0x40a6a0
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push 0xffffffffffffffff
push 0x587a93
mov eax, dword fs:[0]
push eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x61c948]
xor eax, esp
push eax
lea eax, [esp + 0x14]
mov dword fs:[0], eax
mov esi, dword [esp + 0x24]
xor edi, edi
push edi
push edi
mov ecx, esi
call fcn.00557fa0
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x28]
mov dword [esp + 0x1c], edi
mov dword [esi + 0x28], ecx
mov dword [esi], vtable.DSObjects::CRealMediaPlayer.0
mov dword [esi + 0xc], vtable.DSObjects::CRealMediaPlayer.1.0
mov dword [esi + 0x10], vtable.DSObjects::CRealMediaPlayer.2.0
mov dword [esi + 0x14], vtable.DSObjects::CRealMediaPlayer.3.0
mov dword [esi + 0x18], vtable.DSObjects::CRealMediaPlayer.4.0
mov dword [esi + 0x1c], vtable.DSObjects::CRealMediaPlayer.5.0
mov dword [esi + 0x20], vtable.DSObjects::CRealMediaPlayer.6.0
mov dword [esi + 0x24], eax
lea ebp, [esi + 0x3c]
mov dword [esi + 0x2c], edi
mov dword [esi + 0x30], edi
mov bl, 1
mov ecx, ebp
mov byte [esi + 0x34], bl
call fcn.0045347f
mov dword [ebp], vtable.CPlayerWindow.0
mov byte [esp + 0x1c], bl
lea ebx, [esi + 0x90]
mov ecx, ebx
call fcn.0045347f
mov dword [ebx], vtable.CPlayerWindow.0
mov dword [esi + 0xe4], edi
mov dword [esi + 0xe8], edi
mov dword [esi + 0xf0], edi
mov dword [esi + 0xf4], edi
mov dword [esi + 0xf8], edi
mov dword [esi + 0xfc], edi
mov dword [esi + 0x100], edi
mov dword [esi + 0x104], edi
mov dword [esi + 0x108], edi
mov dword [esi + 0x10c], edi
mov dword [esi + 0x110], edi
mov dword [esi + method.CList_class_CButton___class_CButton__const_const__.virtual_0], vtable.CMap_unsigned_int__unsigned_int___struct_IRMASite___struct_IRMASite___.0
mov dword [esi + 0x118], edi
mov dword [esi + 0x11c], 0x11
mov dword [esi + 0x120], edi
mov dword [esi + 0x124], edi
mov dword [esi + 0x128], edi
mov dword [esi + 0x12c], 0xa
mov dword [esi + 0x130], edi
mov dword [esi + 0x134], edi
mov dword [esi + 0x138], edi
mov dword [esi + 0x13c], edi
mov dword [esi + 0x140], edi
mov dword [esi + 0x144], edi
mov eax, esi
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret 0xc
Function at 0x40d320
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push 0xffffffffffffffff
push 0x58a5c8
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push ebp
push esi
push edi
mov eax, dword [0x61c948]
xor eax, esp
push eax
lea eax, [esp + 0x18]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x28]
lea edi, [ebp + 0xc]
mov ecx, edi
mov dword [esp + 0x20], 0
call fcn.004090e0
mov eax, dword [esp + 0x2c]
push 0
push ecx
add eax, 0xfffffff0
mov dword [esp + 0x30], esp
mov esi, esp
push eax
mov bl, 0x20
mov dword [esp + 0x20], eax
call fcn.00409dc0
add eax, 0x10
mov dword [esi], eax
lea eax, [esp + 0x34]
add esp, 4
push eax
mov cl, bl
mov edx, edi
call fcn.0040f600
mov eax, dword [esp + 0x34]
add eax, 0xfffffff0
add esp, 0xc
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40d3b0
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ebx, dword [ebp + 0x10]
test ebx, ebx
je 0x40d45f
mov eax, ebx
lea ecx, [eax + 8]
mov eax, dword [ecx]
cmp dword [eax - 0xc], 0
mov esi, ebx
mov ebx, dword [ebx]
jl 0x40d49a
movzx eax, word [eax]
cmp ax, 0x5c
jne 0x40d450
push 0x5c
call fcn.0040ef50
mov eax, dword [eax]
push 0xa
push 0
push eax
call fcn.004749d0
add esp, 0xc
mov dword [ebp + 0x48], eax
cmp esi, dword [edi + 4]
jne 0x40d3fe
mov ecx, dword [esi]
mov dword [edi + 4], ecx
jmp 0x40d405
mov edx, dword [esi + 4]
mov eax, dword [esi]
mov dword [edx], eax
cmp esi, dword [edi + 8]
jne 0x40d412
mov ecx, dword [esi + 4]
mov dword [edi + 8], ecx
jmp 0x40d41a
mov edx, dword [esi]
mov eax, dword [esi + 4]
mov dword [edx + 4], eax
mov eax, dword [esi + 8]
sub eax, 0x10
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40d439
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [edi + 0x10]
mov dword [esi], ecx
add dword [edi + 0xc], 0xffffffff
mov dword [edi + 0x10], esi
jne 0x40d457
mov ecx, edi
call fcn.004090e0
jmp 0x40d457
push 0x2e
call fcn.0040ef50
test ebx, ebx
jne 0x40d3bb
mov eax, dword [esp + 0x14]
mov dword [esp + 0x20], 0xffffffff
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40d484
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret 8
push 0x80070057
call fcn.0040a460
int3
Function at 0x40d4b0
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push 0xffffffffffffffff
push 0x58a599
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push esi
mov eax, dword [0x61c948]
xor eax, esp
push eax
lea eax, [esp + 0x18]
mov dword fs:[0], eax
mov esi, dword [esp + 0x28]
push 0x20
lea eax, [edi + 0xc]
xor ebx, ebx
push eax
mov dword [esp + 0x28], ebx
push esi
mov dword [esp + 0x18], ebx
call fcn.0040f7e0
add esp, 0xc
mov dword [esp + 0x20], ebx
push 0x5e9640
lea ecx, [esp + 0x18]
mov dword [esp + 0x10], 1
call fcn.0040a190
mov dword [esp + 0x20], 1
movzx ecx, word [edi + 0x48]
add cx, 0x30
lea edx, [esp + 0x10]
push ecx
push eax
push edx
call fcn.0040f250
add esp, 0xc
mov byte [esp + 0x20], 2
mov eax, dword [eax]
mov ecx, dword [eax - 0xc]
push ecx
push eax
mov ecx, esi
call fcn.00408ab0
mov byte [esp + 0x20], 1
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40d563
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x20], bl
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40d587
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, esi
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
add esp, 0x18
ret 4
Function at 0x40f600
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push 0xffffffffffffffff
push 0x58a510
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push ebp
push esi
push edi
mov eax, dword [0x61c948]
xor eax, esp
push eax
lea eax, [esp + 0x18]
mov dword fs:[0], eax
mov esi, edx
xor eax, eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x30]
mov ebx, dword [esp + 0x2c]
push eax
push ecx
push esi
push ecx
mov dword [esp + 0x40], esp
add ebx, 0xfffffff0
mov edi, esp
push ebx
call fcn.00409dc0
lea edx, [esp + 0x44]
add esp, 4
add eax, 0x10
push edx
mov dword [edi], eax
call fcn.0040fbd0
mov eax, dword [esp + 0x44]
add eax, 0xfffffff0
add esp, 0x14
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40f681
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ebp, dword [esi + 4]
test ebp, ebp
je 0x40f700
jmp 0x40f690
mov eax, ebp
mov ecx, dword [eax + 8]
cmp dword [ecx - 0xc], 0
mov edi, ebp
mov ebp, dword [ebp]
jne 0x40f6fc
cmp edi, dword [esi + 4]
jne 0x40f6ac
mov edx, dword [edi]
mov dword [esi + 4], edx
jmp 0x40f6b3
mov eax, dword [edi + 4]
mov ecx, dword [edi]
mov dword [eax], ecx
cmp edi, dword [esi + 8]
jne 0x40f6c0
mov edx, dword [edi + 4]
mov dword [esi + 8], edx
jmp 0x40f6c8
mov eax, dword [edi]
mov ecx, dword [edi + 4]
mov dword [eax + 4], ecx
mov eax, dword [edi + 8]
sub eax, 0x10
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40f6e7
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esi + 0x10]
mov dword [edi], ecx
add dword [esi + 0xc], 0xffffffff
mov dword [esi + 0x10], edi
jne 0x40f6fc
mov ecx, esi
call fcn.004090e0
test ebp, ebp
jne 0x40f690
cmp dword [esi + 0xc], 0
jne 0x40f783
call fcn.0045881f
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x40f720
push 0x80004005
call fcn.0040a460
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
lea ebp, [eax + 0x10]
mov dword [esp + 0x30], ebp
mov byte [esp + 0x20], 1
mov ecx, dword [esi + 8]
push 0
push ecx
mov ecx, esi
call fcn.00409630
mov edi, eax
lea edx, [esp + 0x30]
lea ecx, [edi + 8]
push edx
call fcn.0040a4f0
mov eax, dword [esi + 8]
test eax, eax
je 0x40f75c
mov dword [eax], edi
jmp 0x40f75f
mov dword [esi + 4], edi
lea eax, [ebp - 0x10]
mov dword [esi + 8], edi
mov byte [esp + 0x20], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40f783
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov esi, dword [esi + 4]
add esi, 8
mov esi, dword [esi]
sub esi, 0x10
push esi
call fcn.00409dc0
mov esi, dword [esp + 0x2c]
add eax, 0x10
add esp, 4
mov dword [esi], eax
mov dword [esp + 0x20], 0xffffffff
lea ecx, [ebx + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40f7c1
mov ecx, dword [ebx]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push ebx
call edx
mov eax, esi
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret
Function at 0x40ff00
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x418
mov eax, dword [0x61c948]
xor eax, esp
mov dword [esp + 0x414], eax
mov eax, dword [esp + 0x41c]
push esi
push eax
push str.CLSID_sInprocServer32
lea eax, [esp + 0x10]
push 0x104
push eax
mov esi, ecx
call fcn.00472f02
add esp, 0x10
lea ecx, [esp + 4]
push ecx
lea edx, [esp + 0x214]
push edx
lea eax, [esp + 0x10]
push eax
push SysReAllocString
mov dword [esp + 0x14], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueW]
test eax, eax
jne 0x40ff88
lea ecx, [esp + 0x210]
push ecx
push esi
call dword [sym.imp.SHLWAPI.dll_StrCmpIW]
test eax, eax
jne 0x40ff88
pop esi
mov ecx, dword [esp + 0x414]
xor ecx, esp
call fcn.004721e8
add esp, 0x418
ret
push esi
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, eax
test esi, esi
je 0x40ffae
push str.DllRegisterServer
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x40ffa7
call eax
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov ecx, dword [esp + 0x418]
pop esi
xor ecx, esp
mov eax, 1
call fcn.004721e8
add esp, 0x418
ret