joyce8/EMBER2024-capa huggingface dataset:
Function at 0x5111a0
Capabilities:
Enumerate pe sections

Disassembly:
push esi
mov esi, dword [esp + 0xc]
push edi
mov eax, dword [esi + 0x1c]
push eax
push esi
call fcn.00514010
mov edi, dword [esp + 0x14]
push esi
push edi
call fcn.0050ffe0
push esi
push edi
call fcn.0050ffc0
add esp, 0x18
pop edi
pop esi
ret
mov eax, dword [esp + 8]
xor ecx, ecx
mov cl, byte [eax + 4]
add ecx, 0xfffffffc
cmp ecx, 6
ja case.default.0x5111b1
jmp dword [ecx*4 + 0x511220]
mov dword [esp + 8], eax
jmp 0x5140c0
mov dword [esp + 8], eax
jmp 0x514160
mov edx, dword [esp + 4]
push 0
push 0x20
push eax
push edx
call fcn.00515240
add esp, 0x10
ret
mov dword [esp + 8], eax
jmp 0x514600
mov dword [esp + 8], eax
jmp 0x50ff90
mov edx, dword [eax + 0xc]
push 0
add edx, 0x11
push edx
push eax
mov eax, dword [esp + 0x10]
push eax
call fcn.00515240
add esp, 0x10
ret
mov ecx, dword [eax + 0xc]
mov edx, dword [esp + 4]
add ecx, 0x10
push 0
push ecx
push eax
push edx
call fcn.00515240
add esp, 0x10
ret
push esi
mov esi, dword [esp + 0xc]
push edi
mov edi, dword [esp + 0xc]
mov eax, dword [esi + 0x2c]
mov ecx, dword [esi + 0xc]
shl eax, 2
push 0
push eax
push ecx
push edi
call fcn.00515240
mov edx, dword [esi + 0x34]
mov eax, dword [esi + 0x10]
shl edx, 2
push 0
push edx
push eax
push edi
call fcn.00515240
mov ecx, dword [esi + 0x28]
mov edx, dword [esi + 8]
shl ecx, 4
push 0
push ecx
push edx
push edi
call fcn.00515240
mov eax, dword [esi + 0x30]
mov ecx, dword [esi + 0x14]
shl eax, 2
push 0
push eax
push ecx
push edi
call fcn.00515240
mov eax, dword [esi + 0x38]
add esp, 0x40
lea edx, [eax + eax*2]
mov eax, dword [esi + 0x18]
shl edx, 2
push 0
push edx
push eax
push edi
call fcn.00515240
mov ecx, dword [esi + 0x24]
mov edx, dword [esi + 0x1c]
shl ecx, 2
push 0
push ecx
push edx
push edi
call fcn.00515240
push 0
push 0x48
push esi
push edi
call fcn.00515240
add esp, 0x30
pop edi
pop esi
ret
mov ecx, dword [esp + 8]
mov al, byte [ecx + 6]
test al, al
je 0x514186
xor eax, eax
push 0
mov al, byte [ecx + 7]
inc eax
shl eax, 4
push eax
push ecx
mov ecx, dword [esp + 0x10]
push ecx
call fcn.00515240
add esp, 0x10
ret
xor eax, eax
push 0
mov al, byte [ecx + 7]
lea eax, [eax*4 + 0x24]
push eax
push ecx
mov ecx, dword [esp + 0x10]
push ecx
call fcn.00515240
add esp, 0x10
ret
push esi
mov esi, dword [esp + 0xc]
push edi
mov edi, dword [esp + 0xc]
mov cl, byte [esi + 7]
test cl, cl
je 0x51462e
mov eax, 1
push 0
shl eax, cl
mov ecx, dword [esi + 0x10]
lea eax, [eax + eax*4]
shl eax, 3
push eax
push ecx
push edi
call fcn.00515240
add esp, 0x10
mov edx, dword [esi + 0x1c]
mov eax, dword [esi + 0xc]
shl edx, 4
push 0
push edx
push eax
push edi
call fcn.00515240
push 0
push 0x20
push esi
push edi
call fcn.00515240
add esp, 0x20
pop edi
pop esi
ret
Function at 0x511770
Capabilities:
Enumerate pe sections

Disassembly:
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x18]
mov al, byte [edi + 6]
test al, al
je 0x5117bd
mov al, byte [edi + 7]
xor ebp, ebp
test al, al
jbe 0x51182f
mov ebx, dword [esp + 0x14]
lea esi, [edi + 0x18]
cmp dword [esi - 8], 4
jl 0x5117ab
mov eax, dword [esi]
test byte [eax + 5], 0x11
jne 0x5117ab
push eax
push ebx
call fcn.00511420
add esp, 8
xor eax, eax
inc ebp
mov al, byte [edi + 7]
add esi, 0x10
cmp ebp, eax
jl 0x511793
pop edi
pop esi
pop ebp
pop ebx
ret
mov eax, dword [edi + 0x18]
test byte [eax + 5], 0x11
jne 0x5117d4
mov ecx, dword [esp + 0x14]
push eax
push ecx
call fcn.00511420
add esp, 8
mov eax, dword [edi + 0xc]
test byte [eax + 5], 0x11
jne 0x5117eb
mov edx, dword [esp + 0x14]
push eax
push edx
call fcn.00511420
add esp, 8
mov al, byte [edi + 7]
xor ebx, ebx
test al, al
jbe 0x51182f
lea ebp, [edi + 0x20]
mov esi, dword [ebp]
mov al, byte [esi + 5]
test al, al
jne 0x511822
cmp dword [esi + 0x10], 4
jl 0x51181e
mov eax, dword [esi + 0x18]
test byte [eax + 5], 0x11
jne 0x51181e
push eax
mov eax, dword [esp + 0x18]
push eax
call fcn.00511420
add esp, 8
mov byte [esi + 5], 1
xor ecx, ecx
inc ebx
mov cl, byte [edi + 7]
add ebp, 4
cmp ebx, ecx
jl 0x5117f7
pop edi
pop esi
pop ebp
pop ebx
ret

Function at 0x513dc0
Capabilities:
Encode data using xor

Disassembly:
push ebx
push ebp
mov ebp, dword [esp + 0x14]
mov ebx, dword [esp + 0x10]
mov eax, ebp
push esi
shr eax, 5
inc eax
push edi
cmp ebp, eax
mov edx, ebp
mov esi, ebp
jb 0x513df6
xor ecx, ecx
mov edi, edx
mov cl, byte [ebx + esi - 1]
sub esi, eax
shl edi, 5
add ecx, edi
mov edi, edx
shr edi, 2
add ecx, edi
xor edx, ecx
cmp esi, eax
jae 0x513dda
mov eax, dword [esp + 0x14]
mov eax, dword [eax + 0x10]
mov ecx, dword [eax + 8]
mov eax, dword [eax]
dec ecx
and ecx, edx
mov eax, dword [eax + ecx*4]
test eax, eax
je 0x513e28
cmp dword [eax + 0xc], ebp
jne 0x513e22
mov esi, ebx
mov ecx, ebp
lea edi, [eax + 0x10]
xor ebx, ebx
repe cmpsb byte [esi], byte es:[edi]
je 0x513e38
mov ebx, dword [esp + 0x18]
mov eax, dword [eax]
test eax, eax
jne 0x513e0c
mov ecx, dword [esp + 0x14]
push edx
push ebp
push ebx
push ecx
call fcn.00513e40
add esp, 0x10
pop edi
pop esi
pop ebp
pop ebx
ret
Function at 0x521cfa
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [0x613e0c]
cmp dword [eax + 4], 0xc
jne 0x521d0d
xor eax, eax
inc eax
pop ebp
ret
lea eax, [ebp + 0xc]
push edi
push eax
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov edi, eax
mov eax, dword [ebp + 0x10]
cmp eax, 0xffffffff
je 0x521d48
test eax, eax
je 0x521d44
cmp eax, 2
je 0x521d40
cmp eax, 3
jne 0x521d51
push 0xf
jmp 0x521d4a
push 2
jmp 0x521d4a
push 1
jmp 0x521d4a
push 0xffffffffffffffff
push edi
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
mov eax, edi
pop edi
pop ebp
ret

Function at 0x521d71
Capabilities:
Terminate thread

Disassembly:
mov eax, dword [0x613e0c]
cmp dword [eax + 4], 0xc
je 0x521d88
push 0
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_TerminateThread]
ret
Function at 0x522ed6
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x800
xor eax, eax
push ebx
cmp byte [0x645704], al
push esi
push edi
jne 0x5230bc
push 8
mov esi, 0x6456e4
xor ebx, ebx
pop ecx
cmp byte [ebp + 8], bl
mov edi, esi
rep stosd dword es:[edi], eax
mov dword [0x64571c], ebx
jne 0x522f92
call fcn.00523138
test al, al
je 0x522f92
mov dword [0x64570c], 0x52349f
mov dword [0x645710], 0x5234b5
call dword [0x64570c]
xor ecx, ecx
mov cl, ah
movzx esi, cl
cmp esi, 1
jne 0x5230a9
xor edi, edi
xor esi, esi
push esi
push edi
push ebx
call fcn.005237ab
add esp, 0xc
cmp eax, 5
je 0x522f59
cmp eax, 4
jne 0x522f64
push esi
push edi
push ebx
call fcn.00523991
add esp, 0xc
inc esi
cmp esi, 8
jl 0x522f44
inc edi
cmp edi, 0xc
jl 0x522f42
inc ebx
cmp ebx, 0x10
jl 0x522f40
cmp dword [0x64571c], 1
jge 0x52309e
push 4
pop esi
call fcn.005230c1
mov eax, esi
jmp 0x5230bc
push 8
xor eax, eax
pop ecx
mov edi, esi
rep stosd dword es:[edi], eax
mov edi, 0x5db1c4
lea eax, [ebp - 0x800]
push edi
push eax
mov dword [0x64571c], ebx
call fcn.005214d9
mov esi, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
pop ecx
pop ecx
lea eax, [ebp - 0x800]
push eax
call esi
cmp eax, ebx
mov dword [0x645708], eax
jne 0x523060
lea eax, [ebp - 0x800]
push 0x7ff
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
mov ebx, 0x600360
lea eax, [ebp - 0x800]
push ebx
push eax
call fcn.00521513
lea eax, [ebp - 0x800]
push edi
push eax
call fcn.00521513
add esp, 0x10
lea eax, [ebp - 0x800]
push eax
call esi
test eax, eax
mov dword [0x645708], eax
jne 0x523060
lea eax, [ebp - 0x800]
push 0x7ff
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
lea eax, [ebp - 0x800]
push ebx
push eax
call fcn.00521513
lea eax, [ebp - 0x800]
push edi
push eax
call fcn.00521513
add esp, 0x10
lea eax, [ebp - 0x800]
push eax
call esi
test eax, eax
mov dword [0x645708], eax
jne 0x523060
xor esi, esi
inc esi
jmp 0x522f86
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.GetASPI32SupportInfo
push eax
call esi
push str.SendASPI32Command
mov dword [0x64570c], eax
push dword [0x645708]
call esi
xor ebx, ebx
mov dword [0x645710], eax
cmp dword [0x64570c], ebx
je 0x523097
cmp eax, ebx
jne 0x522f2a
push 5
jmp 0x522f85
mov byte [0x645704], 1
xor eax, eax
jmp 0x5230bc
push esi
call fcn.0052379a
pop ecx
call fcn.005230c1
mov eax, esi
shl eax, 8
or al, 3
pop edi
pop esi
pop ebx
leave
ret
Function at 0x523138
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push edi
xor edi, edi
cmp byte [0x645714], 0
mov dword [ebp - 4], edi
je 0x523153
xor al, al
jmp 0x5231f8
push ebx
push esi
push 0x78f
mov esi, 0x618
push str.C:Dev_fmodsrc374win_src_fsound_cdda.c
push esi
push edi
call fcn.0052186c
add esp, 0x10
mov dword [0x645718], eax
mov dword [0x6456e0], edi
xor eax, eax
mov ecx, dword [0x645718]
add eax, 0x3c
or dword [eax + ecx - 0x28], 0xffffffff
cmp eax, esi
jl 0x52317b
push 2
pop ebx
push 0x78
pop edi
mov al, bl
add al, 0x41
movsx eax, al
push eax
lea eax, [ebp - 8]
push str._c:_
push eax
call fcn.005758c8
add esp, 0xc
lea eax, [ebp - 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
cmp eax, 5
jne 0x5231da
mov eax, dword [0x645718]
add eax, edi
push eax
push ebx
call fcn.00523375
mov eax, dword [0x645718]
pop ecx
pop ecx
cmp byte [edi + eax + 0x10], 0
je 0x5231da
inc dword [ebp - 4]
add edi, 0x3c
inc ebx
cmp edi, esi
jl 0x523193
call fcn.0052330b
mov dword [0x6456e0], eax
mov al, byte [ebp - 4]
pop esi
mov byte [0x645714], 1
pop ebx
pop edi
leave
ret
Function at 0x53161d
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x400
push ebx
xor ebx, ebx
cmp dword [0x647388], ebx
push esi
push edi
jne 0x531755
mov edi, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push str.dsound.dll
call edi
mov dword [0x647388], eax
mov eax, dword [0x613e0c]
test byte [eax + 9], 0x30
je 0x531660
push str.dsound3d.dll
call edi
mov dword [0x64738c], eax
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.DirectSoundCreate8
push dword [0x647388]
call esi
cmp eax, ebx
mov dword [0x6473ac], eax
jne 0x53168e
push str.DirectSoundCreate
push dword [0x647388]
call esi
mov dword [0x6473a4], eax
push str.DirectSoundEnumerateA
push dword [0x647388]
call esi
cmp dword [0x6473ac], ebx
mov dword [0x6473a8], eax
setne al
push eax
push dword [0x647388]
call fcn.0053e8a1
cmp dword [0x6473ac], ebx
pop ecx
pop ecx
je 0x53172b
lea eax, [ebp - 0x400]
push 0x104
push eax
mov dword [0x618b44], 8
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
je 0x531755
lea eax, [ebp - 0x400]
push eax
lea eax, [ebp - 0x200]
push eax
call fcn.005214d9
lea eax, [ebp - 0x200]
push str.d3d9.dll
push eax
call fcn.00521513
push ebx
lea eax, [ebp - 0x200]
push ebx
push eax
call fcn.00521f97
add esp, 0x1c
cmp eax, ebx
je 0x531755
push eax
call fcn.00522125
pop ecx
mov dword [0x618b44], 9
jmp 0x531755
push str.ddraw.dll
call edi
mov edi, eax
cmp edi, ebx
je 0x531755
push str.DirectDrawCreateEx
push edi
call esi
test eax, eax
je 0x53174e
mov dword [0x618b44], 7
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x534abe
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x340
push ebx
push esi
lea eax, [ebp - 4]
push edi
push eax
xor edi, edi
push 1
push edi
push str.SoftwareMicrosoftWindowsCurrentVersionMultimediaMIDIMap
push closesocket
mov dword [ebp - 0xc], 0x100
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x534bff
lea eax, [ebp - 0xc]
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push eax
lea eax, [ebp - 0x240]
push eax
push edi
push edi
push str.CurrentInstrument
push dword [ebp - 4]
call esi
cmp eax, edi
je 0x534b32
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x240]
push eax
push edi
push edi
push str.szPname
push dword [ebp - 4]
call esi
cmp eax, edi
jne 0x534bff
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 8], edi
mov esi, 0x134
push esi
lea eax, [ebp - 0x140]
push edi
push eax
call fcn.005771b0
mov eax, dword [0x64885c]
add esp, 0xc
lea edx, [ebp - 0x140]
mov dword [ebp - 0x140], esi
mov ecx, dword [eax]
push edx
push dword [ebp - 8]
push eax
call dword [ecx + 0xc]
mov ebx, eax
cmp ebx, edi
jne 0x534bc4
cmp dword [ebp - 0x128], 1
jne 0x534bc4
push edi
push edi
lea eax, [ebp - 0x340]
push 0x100
push eax
lea eax, [ebp - 0x10c]
push 0xffffffffffffffff
push eax
push edi
push edi
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
lea eax, [ebp - 0x240]
push eax
call fcn.005214c5
push eax
lea eax, [ebp - 0x240]
push eax
lea eax, [ebp - 0x340]
push eax
call fcn.00521595
add esp, 0x10
test eax, eax
je 0x534bd2
inc dword [ebp - 8]
cmp ebx, 1
jne 0x534b43
jmp 0x534bf1
lea eax, [ebp - 0x138]
push 0x10
push eax
push dword [ebp + 8]
call fcn.00576e70
mov eax, dword [0x613e0c]
add esp, 0xc
test byte [eax + 8], 1
je 0x534bff
mov eax, dword [0x64885c]
push dword [ebp + 8]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x28]
pop edi
pop esi
pop ebx
leave
ret

Function at 0x5356fa
Capabilities:
Encode data using xor

Disassembly:
mov eax, dword [esp + 4]
xor ecx, ecx
cmp eax, ecx
je 0x535791
mov edx, dword [eax]
push ebx
push esi
push edi
mov byte [edx + 0x16], cl
mov edx, dword [eax]
mov byte [edx + 0x17], cl
mov edx, dword [eax]
mov byte [edx + 0x18], cl
mov edx, dword [eax]
mov byte [edx + 0x19], cl
mov esi, dword [eax + 4]
xor edx, edx
cmp esi, ecx
jle 0x535746
mov edi, dword [eax]
mov ebx, ecx
shr ebx, 0x18
movzx edi, byte [edi + edx]
xor edi, ebx
shl ecx, 8
mov edi, dword [edi*4 + 0x619070]
xor ecx, edi
inc edx
cmp edx, esi
jl 0x535728
xor edx, edx
cmp dword [eax + 0xc], edx
jle 0x53576d
mov esi, dword [eax + 8]
movzx edi, byte [esi + edx]
mov ebx, ecx
shr ebx, 0x18
xor edi, ebx
shl ecx, 8
mov edi, dword [edi*4 + 0x619070]
xor ecx, edi
inc edx
cmp edx, dword [eax + 0xc]
jl 0x535750
mov edx, dword [eax]
pop edi
mov byte [edx + 0x16], cl
mov esi, dword [eax]
mov edx, ecx
shr edx, 8
mov byte [esi + 0x17], dl
mov esi, dword [eax]
mov edx, ecx
shr edx, 0x10
mov byte [esi + 0x18], dl
mov eax, dword [eax]
shr ecx, 0x18
pop esi
mov byte [eax + 0x19], cl
pop ebx
ret
Function at 0x53dad3
Capabilities:
Initialize winsock library

Disassembly:
sub esp, 0x190
cmp dword [0x6633e4], 0
jne 0x53daf8
lea eax, [esp]
push eax
push 2
call sub.WSOCK32.dll_WSAStartup
mov dword [0x6633e4], 1
mov al, 1
add esp, 0x190
ret

Function at 0x53db19
Capabilities:
Create udp socket

Disassembly:
mov ecx, dword [esp + 4]
mov eax, ecx
sub eax, 0
je 0x53db2c
dec eax
jne 0x53db2f
push 2
pop ecx
jmp 0x53db2f
xor ecx, ecx
inc ecx
push 0
push ecx
push 2
call sub.WSOCK32.dll_socket
ret

Function at 0x53db44
Capabilities:
Connect socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x50
push esi
mov esi, dword [ebp + 0xc]
test esi, esi
je 0x53dba6
cmp byte [esi], 0
je 0x53dba6
cmp dword [ebp + 0x10], 0
je 0x53dba6
push 0x10
lea eax, [ebp - 0x20]
push 0
push eax
call fcn.005771b0
push 0x10
lea eax, [ebp - 0x10]
push 0
push eax
call fcn.005771b0
lea eax, [ebp - 0x50]
push 0x2e
push eax
push esi
call fcn.0053dc28
add esp, 0x24
test eax, eax
je 0x53db9d
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x50]
push eax
call fcn.0053dbe0
pop ecx
test eax, eax
pop ecx
jne 0x53dbac
push dword [ebp + 8]
call fcn.0053db3a
pop ecx
or eax, 0xffffffff
pop esi
leave
ret
lea eax, [ebp - 0x1c]
push 4
push eax
lea eax, [ebp - 0xc]
push eax
call fcn.00576e70
add esp, 0xc
mov word [ebp - 0x10], 2
push dword [ebp + 0x10]
call sub.WSOCK32.dll_htons
mov word [ebp - 0xe], ax
lea eax, [ebp - 0x10]
push 0x10
push eax
push dword [ebp + 8]
call sub.WSOCK32.dll_connect
jmp 0x53dba9

Function at 0x53dbe0
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x10]
push eax
push str._d._d._d._d
push dword [ebp + 8]
call fcn.00577f41
add esp, 0x18
cmp eax, 4
jge 0x53dc0f
xor eax, eax
leave
ret
push dword [ebp + 8]
call sub.WSOCK32.dll_inet_addr
mov ecx, dword [ebp + 0xc]
mov dword [ecx], eax
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov eax, ecx
leave
ret

Function at 0x53dc28
Capabilities:
Resolve dns

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
push dword [ebp + 8]
call fcn.0053dc7b
test eax, eax
pop ecx
je 0x53dc54
mov edi, dword [ebp + 0x10]
push edi
push dword [ebp + 8]
mov esi, dword [ebp + 0xc]
push esi
call fcn.005214f0
add esp, 0xc
and byte [esi + edi - 1], 0
jmp 0x53dc75
push dword [ebp + 8]
call sub.WSOCK32.dll_gethostbyname
test eax, eax
je 0x53dc73
mov eax, dword [eax + 0xc]
mov eax, dword [eax]
push dword [eax]
call sub.WSOCK32.dll_inet_ntoa
mov edi, dword [ebp + 0x10]
push edi
push eax
jmp 0x53dc41
xor esi, esi
mov eax, esi
pop edi
pop esi
pop ebp
ret
Function at 0x53fc5c
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x84
push ebx
push esi
lea eax, [ebp - 4]
push edi
mov esi, ecx
push eax
xor edi, edi
push str.software_asio
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 4], edi
xor ebx, ebx
mov dword [esi + 4], edi
mov dword [esi], edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x53fcc4
lea ecx, [ebp - 0x84]
mov eax, ebx
push 0x80
push ecx
push eax
inc ebx
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
cmp eax, edi
jne 0x53fcc4
push dword [esi]
lea eax, [ebp - 0x84]
push edi
push eax
push dword [ebp - 4]
call fcn.0053fcf6
add esp, 0x10
mov dword [esi], eax
jmp 0x53fc8e
cmp dword [ebp - 4], edi
je 0x53fcd2
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esi]
jmp 0x53fcdf
inc dword [esi + 4]
mov eax, dword [eax + 0x298]
cmp eax, edi
jne 0x53fcd6
cmp dword [esi + 4], edi
je 0x53fcef
push edi
call dword [sym.imp.ole32.dll_CoInitialize]
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret

Function at 0x53fcf6
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3dc
push esi
mov esi, dword [ebp + 0x14]
test esi, esi
push edi
jne 0x53fe40
lea eax, [ebp - 4]
push eax
push 0x20019
push esi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x53fe5d
lea eax, [ebp + 8]
push ebx
push eax
lea eax, [ebp - 0x114]
push eax
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea eax, [ebp + 0x14]
mov dword [ebp + 0x14], 1
push eax
push esi
push str.clsid
mov dword [ebp + 8], 0x100
push dword [ebp - 4]
call edi
test eax, eax
jne 0x53fe34
lea eax, [ebp - 0x3dc]
push 0x200
push eax
lea eax, [ebp - 0x114]
push eax
call fcn.0053fe63
add esp, 0xc
test eax, eax
jne 0x53fe34
mov ebx, 0x29c
push ebx
call fcn.0058f420
mov esi, eax
pop ecx
test esi, esi
je 0x53fe34
push ebx
push 0
push esi
call fcn.005771b0
mov eax, dword [ebp + 0x10]
add esp, 0xc
mov dword [esi], eax
lea eax, [ebp - 0x1dc]
push 0x64
push eax
lea eax, [ebp - 0x114]
push 0xffffffffffffffff
xor ebx, ebx
push eax
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x1dc]
push eax
call dword [sym.imp.ole32.dll_CLSIDFromString]
test eax, eax
jne 0x53fdee
lea eax, [ebp - 0x14]
push 0x10
push eax
lea eax, [esi + 4]
push eax
call fcn.00576e70
add esp, 0xc
lea eax, [ebp + 8]
mov dword [ebp + 0x14], 1
push eax
lea eax, [ebp - 0x114]
push eax
lea eax, [ebp + 0x14]
push eax
push ebx
push str.description
mov dword [ebp + 8], 0x100
push dword [ebp - 4]
call edi
test eax, eax
jne 0x53fe23
lea eax, [ebp - 0x114]
push eax
jmp 0x53fe26
push dword [ebp + 0xc]
lea eax, [esi + 0x214]
push eax
call fcn.005772e0
pop ecx
pop ecx
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop ebx
jmp 0x53fe5d
mov eax, dword [ebp + 0x10]
lea edi, [esi + 0x298]
inc eax
push dword [edi]
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.0053fcf6
add esp, 0x10
mov dword [edi], eax
mov eax, esi
pop edi
pop esi
leave
ret
Function at 0x53fe63
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2a8
or dword [ebp - 0x18], 0xffffffff
push edi
push dword [ebp + 8]
xor edi, edi
mov dword [ebp - 0xc], edi
call fcn.00576df0
pop ecx
push eax
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_CharLowerBuffA]
lea eax, [ebp - 8]
push eax
push str.clsid
push closesocket
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
cmp eax, edi
jne 0x53ffd4
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
push esi
mov dword [ebp - 4], edi
cmp dword [ebp - 0xc], edi
jne 0x53ffc9
mov eax, dword [ebp - 4]
inc dword [ebp - 4]
lea ecx, [ebp - 0x2a8]
push 0x200
push ecx
push eax
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
cmp eax, edi
jne 0x53ffc9
lea eax, [ebp - 0x2a8]
push eax
call fcn.00576df0
pop ecx
push eax
lea eax, [ebp - 0x2a8]
push eax
call dword [sym.imp.USER32.dll_CharLowerBuffA]
push dword [ebp + 8]
lea eax, [ebp - 0x2a8]
push eax
call fcn.00577890
pop ecx
test eax, eax
pop ecx
jne 0x53feb0
lea eax, [ebp - 0x14]
push eax
push 0x20019
lea eax, [ebp - 0x2a8]
push edi
push eax
push dword [ebp - 8]
call ebx
mov esi, eax
cmp esi, edi
jne 0x53ffba
lea eax, [ebp - 0x10]
push eax
push 0x20019
push edi
push str.InprocServer32
push dword [ebp - 0x14]
call ebx
mov esi, eax
cmp esi, edi
jne 0x53ffb1
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x20], 1
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x20]
push dword [ebp + 0xc]
push eax
push edi
push edi
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov esi, eax
cmp esi, edi
jne 0x53ffa8
push 0x88
lea eax, [ebp - 0xa8]
push edi
push eax
call fcn.005771b0
add esp, 0xc
lea eax, [ebp - 0xa8]
mov byte [ebp - 0xa8], 0x88
push 0x4000
push eax
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_OpenFile]
test eax, eax
je 0x53ffa8
mov dword [ebp - 0x18], edi
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp esi, edi
mov dword [ebp - 0xc], 1
je 0x53feb0
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
pop ebx
mov eax, dword [ebp - 0x18]
pop edi
leave
ret

Function at 0x54f340
Capabilities:
Get thread local storage value

Disassembly:
mov eax, dword [0x664954]
push esi
push edi
xor edi, edi
test eax, eax
je 0x54f397
mov eax, dword [0x678680]
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esi, eax
test esi, esi
je 0x54f397
push 0x95b6
push esi
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x54f38f
push esi
call fcn.00550660
add esp, 4
push esi
call dword [sym.imp.KERNEL32.dll_GlobalHandle]
mov esi, eax
push esi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
pop edi
mov eax, 1
pop esi
ret
mov eax, edi
pop edi
pop esi
ret
Function at 0x54f460
Capabilities:
Get disk information
Get thread local storage value

Disassembly:
push ecx
mov ecx, dword [0x678680]
mov eax, dword [0x6243e4]
push ecx
mov dword [esp + 4], eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x54f4bb
mov ecx, dword [eax + 0x10]
test ecx, ecx
je 0x54f489
mov eax, 1
pop ecx
ret
mov eax, dword [esp + 8]
test eax, eax
jl 0x54f4bb
cmp eax, 0x1a
jg 0x54f4bb
test eax, eax
jne 0x54f49f
call fcn.005634f0
mov cl, byte [esp]
dec al
lea edx, [esp]
add cl, al
push edx
mov byte [esp + 4], cl
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
cmp eax, 2
je 0x54f482
xor eax, eax
pop ecx
ret

Function at 0x54f550
Capabilities:
Get thread local storage value

Disassembly:
push ecx
mov eax, dword [0x678680]
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x54f5b2
mov ecx, dword [eax + 0x97e]
push ebx
push 0
push 0
push 0
push ecx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
call fcn.00554880
mov bl, al
call fcn.00554880
mov byte [esp + 6], al
call fcn.00554880
mov byte [esp + 7], al
call fcn.00554880
cmp bl, 0x50
pop ebx
jne 0x54f5b2
cmp byte [esp + 2], 0x4b
jne 0x54f5b2
cmp byte [esp + 3], 1
jne 0x54f5b2
cmp al, 2
jne 0x54f5b2
mov eax, 1
pop ecx
ret
xor eax, eax
pop ecx
ret