joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10031ff3
Capabilities:
Check if file exists
Delete file
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
push edi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
xor ebx, ebx
mov dword [ebp - 8], eax
cmp eax, ebx
jne 0x1003201f
call fcn.10031837
test eax, eax
jne 0x1003201f
pop edi
pop esi
pop ebx
leave
ret 0xc
push ebx
push ebx
push 2
push ebx
push ebx
push 0x40000000
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
mov dword [ebp - 0xc], esi
cmp esi, ebx
je 0x1003203f
cmp esi, 0xffffffff
jne 0x10032057
cmp dword [ebp - 8], ebx
jne 0x1003204b
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea eax, [ebp - 0xc]
call fcn.10003214
mov eax, ebx
jmp 0x10032018
mov edi, dword [ebp + 0x10]
push ebx
lea eax, [ebp - 4]
push eax
push edi
push dword [ebp + 0xc]
mov dword [ebp - 4], ebx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x1003207b
cmp dword [ebp - 4], edi
jne 0x1003207b
xor ebx, ebx
inc ebx
jmp 0x1003204b
cmp dword [ebp - 8], ebx
jne 0x1003204b
or dword [ebp - 0xc], 0xffffffff
cmp esi, 0xffffffff
je 0x10032094
cmp esi, ebx
je 0x10032094
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp + 8]
jmp 0x10032045

Function at 0x10032099
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
xor ecx, ecx
cmp dword [esp + 8], ecx
jle 0x100320c1
push esi
mov edx, dword [esp + 8]
movzx edx, byte [ecx + edx]
movzx esi, al
xor edx, esi
shr eax, 8
xor eax, dword [edx*4 + 0x10079c30]
inc ecx
cmp ecx, dword [esp + 0xc]
jl 0x100320a2
pop esi
not eax
ret 8

Function at 0x10032472
Capabilities:
Get storage device properties

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x60
mov eax, dword [0x10077060]
xor eax, ebp
mov dword [ebp - 8], eax
movsx eax, byte [ebp + 8]
push ebx
push esi
push edi
push eax
push str.__c:
lea esi, [ebp - 0x60]
call fcn.100341c9
cmp dword [eax + 0x18], 0x10
pop ecx
pop ecx
jb 0x100324a4
mov eax, dword [eax + 4]
jmp 0x100324a7
add eax, 4
xor esi, esi
push esi
push esi
push 3
push esi
push 3
push connect
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
push esi
mov ebx, eax
push 1
lea ecx, [ebp - 0x60]
mov dword [ebp - 0x40], ebx
call fcn.10002243
cmp ebx, esi
je 0x100324d5
cmp ebx, 0xffffffff
jne 0x100324ef
lea eax, [ebp - 0x40]
call fcn.10003214
or eax, 0xffffffff
mov ecx, dword [ebp - 8]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1004017c
leave
ret
push 0x28
pop edx
push 9
pop ecx
xor eax, eax
push esi
mov dword [ebp - 0x3c], edx
lea edi, [ebp - 0x38]
rep stosd dword es:[edi], eax
mov dword [ebp - 0x14], esi
mov dword [ebp - 0x10], esi
lea edi, [ebp - 0xc]
stosd dword es:[edi], eax
lea eax, [ebp - 0x44]
push eax
push edx
lea eax, [ebp - 0x3c]
push eax
push 0xc
lea eax, [ebp - 0x14]
push eax
push 0x2d1400
push ebx
mov dword [ebp - 0x44], esi
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
jne 0x1003253b
or esi, 0xffffffff
lea eax, [ebp - 0x40]
call fcn.10003214
mov eax, esi
jmp 0x100324e0
mov esi, dword [ebp - 0x20]
jmp 0x1003252f
Function at 0x10032540
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x220
mov eax, dword [0x10077060]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, ecx
mov ebx, edx
mov dword [ebp - 0x218], edi
mov dword [ebp - 0x21c], ebx
test edi, edi
je 0x1003262e
test ebx, ebx
je 0x1003262e
cmp dword [ebp + 8], 0
je 0x1003262e
mov esi, str.deviceMup_
push esi
push edi
call dword [sym.imp.SHLWAPI.dll_StrStrIW]
cmp eax, edi
jne 0x100325aa
push ebx
push 0x10068aa8
push esi
mov ecx, edi
mov eax, dword [ebp + 8]
call fcn.10033fc7
xor eax, eax
inc eax
jmp 0x10032630
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
mov dword [ebp - 0x220], eax
xor ebx, ebx
xor eax, eax
inc eax
mov ecx, ebx
shl eax, cl
mov ecx, dword [ebp - 0x220]
test ecx, eax
je 0x10032628
push 0x3a
lea eax, [ebx + 0x61]
mov word [ebp - 0xc], ax
pop eax
mov word [ebp - 0xa], ax
xor eax, eax
push 0x206
lea edi, [ebp - 8]
push eax
stosd dword es:[edi], eax
mov word [ebp - 0x214], ax
lea eax, [ebp - 0x212]
push eax
call fcn.10042870
add esp, 0xc
push 0x104
lea eax, [ebp - 0x214]
push eax
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_QueryDosDeviceW]
test eax, eax
jbe 0x10032628
push dword [ebp - 0x218]
lea esi, [ebp - 0x214]
call fcn.100340c5
test eax, eax
jne 0x10032641
inc ebx
cmp ebx, 0x1a
jl 0x100325b8
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1004017c
leave
ret 4
push dword [ebp - 0x21c]
mov ecx, dword [ebp - 0x218]
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x214]
push eax
jmp 0x1003259a

Function at 0x10032f45
Capabilities:
Enumerate process modules

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x434
mov eax, dword [0x10077060]
xor eax, esp
mov dword [esp + 0x430], eax
mov eax, fcn.100336b1
push esi
test eax, eax
je 0x10032fd2
push 0x424
lea eax, [esp + 0x10]
push 0
push eax
call fcn.10042870
add esp, 0xc
push dword [ebp + 8]
mov dword [esp + 0xc], 0x428
push 8
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov esi, eax
mov dword [esp + 4], esi
test esi, esi
je 0x10032fc9
cmp esi, 0xffffffff
je 0x10032fc9
lea eax, [esp + 8]
push eax
push esi
call sub.KERNEL32.dll_Module32FirstW
jmp 0x10032fc5
push edi
lea eax, [esp + 0xc]
push eax
call fcn.100336b1
test eax, eax
je 0x10032fc9
lea eax, [esp + 8]
push eax
push esi
call sub.KERNEL32.dll_Module32NextW
test eax, eax
jne 0x10032fab
lea eax, [esp + 4]
call fcn.10003214
mov ecx, dword [esp + 0x434]
pop esi
xor ecx, esp
call fcn.1004017c
mov esp, ebp
pop ebp
ret 4
Function at 0x10032fe7
Capabilities:
Enumerate processes

Disassembly:
push ebp
sub esp, 0x22c
lea ebp, [esp - 4]
mov eax, dword [0x10077060]
xor eax, ebp
mov dword [ebp + 0x22c], eax
push 8
mov eax, 0x10056bef
call fcn.10041871
mov eax, dword [ebp + 0x238]
mov dword [ebp - 0x14], eax
test edi, edi
je 0x1003307c
push 0
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov esi, eax
mov dword [ebp - 0x10], esi
and dword [ebp - 4], 0
test esi, esi
je 0x10033074
cmp esi, 0xffffffff
je 0x10033074
push 0x228
lea eax, [ebp + 4]
push 0
push eax
mov dword [ebp], 0x22c
call fcn.10042870
add esp, 0xc
lea eax, [ebp]
push eax
push esi
call sub.KERNEL32.dll_Process32FirstW
jmp 0x10033070
push dword [ebp - 0x14]
lea eax, [ebp]
push eax
call edi
test eax, eax
je 0x10033074
lea eax, [ebp]
push eax
push esi
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x10033059
lea eax, [ebp - 0x10]
call fcn.10003214
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x22c]
xor ecx, ebp
call fcn.1004017c
add ebp, 0x230
leave
ret 4

Function at 0x100330a1
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x5c
push esi
xor esi, esi
push edi
cmp dword [ebp + 8], esi
jne 0x100330b4
xor eax, eax
jmp 0x1003310d
push 0x40
lea eax, [ebp - 0x58]
push esi
push eax
mov dword [ebp - 0x5c], 0x44
call fcn.10042870
mov dword [ebp - 0x14], esi
xor eax, eax
lea edi, [ebp - 0x10]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov edi, dword [ebp + 8]
add esp, 0xc
call fcn.10031461
mov edi, eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x5c]
push eax
push esi
push esi
push esi
push esi
push esi
push esi
push edi
push esi
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x10033105
push dword [ebp - 0x10]
mov esi, dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
call fcn.1003148e
mov eax, esi
pop edi
pop esi
leave
ret 4
Function at 0x100331ee
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x74
push ebx
push esi
xor esi, esi
push edi
cmp dword [ebp + 8], esi
jne 0x10033207
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 8
call fcn.10033113
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x18]
push eax
mov edi, 0x1003330d
mov dword [ebp - 0x14], esi
mov dword [ebp - 0x10], esi
call fcn.10032fe7
cmp dword [ebp - 0x10], esi
je 0x100331fe
push dword [ebp - 0x14]
push esi
push 0x400
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov dword [ebp - 0xc], eax
cmp eax, esi
je 0x10033243
cmp eax, 0xffffffff
jne 0x1003324f
lea eax, [ebp - 0xc]
call fcn.10003214
mov eax, esi
jmp 0x10033200
lea ecx, [ebp - 4]
push ecx
push 0xf01ff
push eax
mov dword [ebp - 4], esi
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x10033243
push esi
push dword [ebp - 4]
lea eax, [ebp - 8]
push eax
mov dword [ebp - 8], esi
call dword [sym.imp.USERENV.dll_CreateEnvironmentBlock]
test eax, eax
je 0x100332ff
mov edi, dword [ebp + 8]
call fcn.10031461
push 0x40
mov ebx, eax
lea eax, [ebp - 0x6c]
push esi
push eax
mov dword [ebp - 0x70], 0x44
call fcn.10042870
add esp, 0xc
mov dword [ebp - 0x44], 1
cmp dword [ebp + 0xc], esi
je 0x100332b0
push 5
pop eax
jmp 0x100332b2
xor eax, eax
mov word [ebp - 0x40], ax
xor eax, eax
mov dword [ebp - 0x28], esi
lea edi, [ebp - 0x24]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x70]
push eax
push esi
push dword [ebp - 8]
push 0x420
push esi
push esi
push esi
push ebx
push esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_CreateProcessAsUserW]
test eax, eax
je 0x100332f0
push dword [ebp - 0x24]
mov esi, dword [ebp - 0x28]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebx
call fcn.1003148e
push dword [ebp - 8]
call dword [sym.imp.USERENV.dll_DestroyEnvironmentBlock]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x10033243
Function at 0x1003335f
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x7c
push ebx
push esi
xor esi, esi
push edi
mov edi, eax
mov dword [ebp - 8], esi
cmp dword [ebp + 8], esi
je 0x1003347a
cmp dword [ebp + 0xc], esi
je 0x1003347a
cmp edi, esi
je 0x1003347a
push dword [ebp + 8]
lea eax, [ebp - 0x30]
push eax
mov ebx, 0x10064f8c
call fcn.10033f10
mov eax, dword [ebp - 0x20]
sub eax, dword [ebp - 0x24]
pop ecx
pop ecx
push 0x1c
cdq
pop ecx
idiv ecx
xor ebx, ebx
cmp eax, 2
jbe 0x100333cf
push 0x57
call dword [sym.imp.KERNEL32.dll_SetLastError]
lea esi, [ebp - 0x30]
call fcn.1000c52d
push dword [ebp - 0x30]
call fcn.1004062b
pop ecx
xor eax, eax
jmp 0x1003347d
jne 0x10033404
push 1
lea esi, [ebp - 0x30]
call fcn.100081ec
cmp dword [eax + 0x18], 8
jb 0x100333e6
mov eax, dword [eax + 4]
jmp 0x100333e9
add eax, 4
push 0
lea esi, [ebp - 0x30]
mov dword [ebp + 8], eax
call fcn.100081ec
cmp dword [eax + 0x18], 8
jb 0x10033401
mov ebx, dword [eax + 4]
jmp 0x10033404
lea ebx, [eax + 4]
call fcn.10031461
mov dword [ebp - 4], eax
xor eax, eax
xor esi, esi
mov dword [ebp - 0x18], esi
lea edi, [ebp - 0x14]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
push 0x40
stosd dword es:[edi], eax
lea eax, [ebp - 0x74]
push esi
push eax
mov dword [ebp - 0x78], 0x44
call fcn.10042870
add esp, 0xc
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x78]
push eax
push esi
push esi
push 0x10
push dword [ebp - 4]
push esi
push 1
push dword [ebp + 0xc]
push ebx
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_CreateProcessWithLogonW]
test eax, eax
je 0x10033461
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x18]
mov dword [ebp - 8], eax
push dword [ebp - 4]
call fcn.1003148e
lea esi, [ebp - 0x30]
call fcn.1000c52d
push dword [ebp - 0x30]
call fcn.1004062b
pop ecx
mov eax, dword [ebp - 8]
pop edi
pop esi
pop ebx
leave
ret 8

Function at 0x1003360d
Capabilities:
Get process image filename

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x10077060]
xor eax, ebp
mov dword [ebp - 4], eax
test edi, edi
jne 0x10033634
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1004017c
leave
ret 8
push esi
push dword [ebp + 8]
push 0
push 0x410
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
mov dword [ebp - 0x210], esi
test esi, esi
je 0x10033656
cmp esi, 0xffffffff
jne 0x10033668
xor esi, esi
lea eax, [ebp - 0x210]
call fcn.10003214
mov eax, esi
pop esi
jmp 0x10033626
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x20c], ax
lea eax, [ebp - 0x20a]
push eax
call fcn.10042870
add esp, 0xc
push 0x104
lea eax, [ebp - 0x20c]
push eax
push esi
call sub.PSAPI.DLL_GetProcessImageFileNameW
test eax, eax
jbe 0x10033656
push dword [ebp + 0xc]
mov edx, edi
lea ecx, [ebp - 0x20c]
call fcn.10032540
xor esi, esi
inc esi
jmp 0x10033658
Function at 0x1003381a
Capabilities:
Check if file exists
Get file size
Read file via mapping

Disassembly:
or dword [esi], 0xffffffff
push ebx
push dword [esp + 8]
xor ebx, ebx
mov dword [esi + 4], ebx
mov dword [esi + 8], ebx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x100338af
push ebx
push 0x80
push 3
push ebx
push 1
push connect
push dword [esp + 0x20]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [esi], eax
cmp eax, 0xffffffff
je 0x100338af
push edi
lea edi, [esi + 0x10]
push edi
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x100338ae
mov ecx, dword [edi]
mov eax, dword [edi + 4]
mov edx, ecx
or edx, eax
je 0x100338ae
cmp eax, ebx
jl 0x10033883
mov eax, 0x400000
jg 0x1003387f
cmp ecx, eax
jbe 0x10033883
mov edi, eax
jmp 0x10033885
mov edi, ecx
push ebx
push ebx
push ebx
push 2
push ebx
push dword [esi]
mov dword [esi + 0x18], edi
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov dword [esi + 4], eax
cmp eax, ebx
je 0x100338ae
push dword [esi + 0x18]
push ebx
push ebx
push 4
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov dword [esi + 8], eax
pop edi
mov eax, esi
pop ebx
ret 4

Function at 0x10033b1a
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
xor ebx, ebx
cmp dword [ebp + 8], ebx
je 0x10033bc1
cmp dword [ebp + 0xc], ebx
je 0x10033bc1
push esi
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov esi, eax
cmp esi, ebx
je 0x10033bc0
lea eax, [esi + esi]
push edi
push eax
call fcn.10040de6
mov edi, eax
pop ecx
cmp edi, ebx
je 0x10033bbf
push esi
push ebx
push edi
call fcn.10042870
add esp, 0xc
push edi
push esi
push ebx
push dword [ebp + 8]
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x10033bb8
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 4]
push eax
push 0x10064f8c
push edi
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x10033bb8
mov eax, dword [ebp - 4]
movzx ecx, word [eax + 0xc]
push ecx
movzx ecx, word [eax + 0xe]
push ecx
movzx ecx, word [eax + 8]
movzx eax, word [eax + 0xa]
push ecx
push eax
push str._d._d._d._d
push 0x104
push dword [ebp + 0xc]
call dword [sym.imp.SHLWAPI.dll_wnsprintfW]
add esp, 0x1c
inc ebx
push edi
call fcn.10040d09
pop ecx
pop edi
pop esi
mov eax, ebx
pop ebx
leave
ret 8
Function at 0x100342d2
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
sub esp, 0x800
lea ebp, [esp - 4]
mov eax, dword [0x10077060]
xor eax, ebp
mov dword [ebp + 0x800], eax
push 0x20
mov eax, 0x100587ca
call fcn.10041871
mov eax, dword [ebp + 0x80c]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp + 0x810]
mov esi, ecx
mov edi, edx
xor ebx, ebx
mov dword [ebp - 0x24], esi
mov dword [ebp - 0x20], edi
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x2c], ebx
call fcn.1000201d
xor esi, esi
inc esi
mov dword [ebp - 4], ebx
mov dword [ebp - 0x2c], esi
mov dword [ebp - 0x28], ebx
cmp edi, ebx
je 0x100343e2
xor eax, eax
push 0x7fe
mov word [ebp], ax
lea eax, [ebp + 2]
push ebx
push eax
call fcn.10042870
add esp, 0xc
lea eax, [ebp - 0x10]
push eax
push ebx
lea eax, [ebp - 0x1c]
push eax
push dword [ebp - 0x14]
mov dword [ebp - 0x10], ebx
push edi
push dword [ebp - 0x18]
mov edi, dword [sym.imp.SHLWAPI.dll_SHGetValueW]
mov dword [ebp - 0x1c], ebx
call edi
cmp dword [ebp - 0x1c], esi
je 0x10034371
cmp dword [ebp - 0x1c], 2
jne 0x100343e2
mov eax, dword [ebp - 0x10]
cmp eax, ebx
je 0x100343e2
cmp eax, 0x800
jbe 0x100343ae
add eax, 2
push eax
call fcn.10040de6
mov esi, eax
mov eax, dword [ebp - 0x10]
add eax, 2
push eax
push ebx
push esi
call fcn.10042870
add esp, 0x10
lea eax, [ebp - 0x10]
push eax
push esi
push ebx
push dword [ebp - 0x14]
push dword [ebp - 0x20]
push dword [ebp - 0x18]
call edi
jmp 0x100343c5
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp]
push eax
push ebx
push dword [ebp - 0x14]
push dword [ebp - 0x20]
push dword [ebp - 0x18]
call edi
mov esi, dword [ebp - 0x28]
mov eax, esi
cmp esi, ebx
jne 0x100343ce
lea eax, [ebp]
push eax
push dword [ebp - 0x24]
call fcn.1000231a
cmp esi, ebx
je 0x100343e2
push esi
call fcn.10040d09
pop ecx
mov eax, dword [ebp - 0x24]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x800]
xor ecx, ebp
call fcn.1004017c
add ebp, 0x804
leave
ret
Function at 0x10034408
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10058789
mov eax, dword fs:[0]
push eax
mov eax, 0x2040
call fcn.1004f2f0
mov eax, dword [0x10077060]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
xor edi, edi
mov dword [ebp - 4], edi
push eax
mov dword [ebp - 0x2028], eax
mov esi, edx
mov dword [ebp - 0x2018], ecx
mov dword [ebp - 0x202c], edi
call fcn.10009a4d
lea eax, [ebp - 0x201c]
push eax
xor ebx, ebx
inc ebx
push ebx
push edi
push dword [ebp - 0x2018]
mov dword [ebp - 0x202c], ebx
push esi
mov dword [ebp - method.RegHandleHolder.virtual_0], vtable.RegHandleHolder.0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov dword [ebp - 4], ebx
cmp dword [ebp - 0x201c], edi
je 0x10034533
xor eax, eax
push 0x1ffe
mov word [ebp - 0x2014], ax
lea eax, [ebp - 0x2012]
push edi
push eax
mov dword [ebp - 0x2018], edi
call fcn.10042870
add esp, 0xc
push edi
push edi
push edi
push edi
lea eax, [ebp - 0x2024]
push eax
lea eax, [ebp - 0x2014]
push eax
push edi
jmp 0x10034519
inc dword [ebp - 0x2018]
lea eax, [ebp - 0x2014]
push eax
lea esi, [ebp - 0x2048]
call fcn.10002030
mov eax, esi
mov byte [ebp - 4], 2
push eax
mov eax, dword [ebp - 0x2028]
call fcn.1000c105
push edi
push ebx
mov byte [ebp - 4], bl
call fcn.1000233f
push edi
push edi
push edi
push edi
lea eax, [ebp - 0x2024]
push eax
lea eax, [ebp - 0x2014]
push eax
push dword [ebp - 0x2018]
push dword [ebp - 0x201c]
mov dword [ebp - 0x2024], 0x1000
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
test eax, eax
je 0x100344cd
mov dword [ebp - method.RegHandleHolder.virtual_0], vtable.RegHandleHolder.0
cmp dword [ebp - 0x201c], edi
je 0x10034551
push dword [ebp - 0x201c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x2028]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.1004017c
leave
ret
Function at 0x10034571
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10058789
mov eax, dword fs:[0]
push eax
mov eax, 0x2040
call fcn.1004f2f0
mov eax, dword [0x10077060]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
xor edi, edi
mov dword [ebp - 4], edi
push eax
mov dword [ebp - 0x2028], eax
mov esi, edx
mov dword [ebp - 0x2018], ecx
mov dword [ebp - 0x202c], edi
call fcn.10009a4d
lea eax, [ebp - 0x201c]
push eax
push 8
push edi
push dword [ebp - 0x2018]
xor ebx, ebx
inc ebx
push esi
mov dword [ebp - 0x202c], ebx
mov dword [ebp - method.RegHandleHolder.virtual_0], vtable.RegHandleHolder.0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov dword [ebp - 4], ebx
cmp dword [ebp - 0x201c], edi
je 0x1003469d
xor eax, eax
push 0x1ffe
mov word [ebp - 0x2014], ax
lea eax, [ebp - 0x2012]
push edi
push eax
mov dword [ebp - 0x2018], edi
call fcn.10042870
add esp, 0xc
push edi
push edi
push edi
push edi
lea eax, [ebp - 0x2024]
push eax
lea eax, [ebp - 0x2014]
push eax
push edi
jmp 0x10034683
inc dword [ebp - 0x2018]
lea eax, [ebp - 0x2014]
push eax
lea esi, [ebp - 0x2048]
call fcn.10002030
mov eax, esi
mov byte [ebp - 4], 2
push eax
mov eax, dword [ebp - 0x2028]
call fcn.1000c105
push edi
push ebx
mov byte [ebp - 4], bl
call fcn.1000233f
push edi
push edi
push edi
push edi
lea eax, [ebp - 0x2024]
push eax
lea eax, [ebp - 0x2014]
push eax
push dword [ebp - 0x2018]
push dword [ebp - 0x201c]
mov dword [ebp - 0x2024], 0x1000
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
je 0x10034637
mov dword [ebp - method.RegHandleHolder.virtual_0], vtable.RegHandleHolder.0
cmp dword [ebp - 0x201c], edi
je 0x100346bb
push dword [ebp - 0x201c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x2028]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.1004017c
leave
ret

Function at 0x100346db
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
xor esi, esi
push esi
lea eax, [ebp - 4]
push eax
push esi
push 0x20006
push 1
push esi
push esi
push dword [ebp + 8]
mov dword [ebp - 4], esi
push reloc.WS2_32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
mov edi, eax
cmp edi, esi
jne 0x1003472a
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push esi
push dword [ebp + 0xc]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 4]
mov edi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
pop edi
pop esi
leave
ret
Function at 0x100347e8
Capabilities:
Check if file exists
Create service
Persist via windows service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
xor esi, esi
cmp dword [ebp + 0xc], 3
jbe 0x100347fc
cmp dword [ebp + 0xc], esi
ja 0x1003486a
push dword [ebp + 8]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x1003486a
push dword [ebp + 8]
call dword [sym.imp.SHLWAPI.dll_PathFindExtensionW]
push 0xf003f
push esi
push esi
mov dword [ebp - 4], esi
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov dword [ebp - 8], eax
cmp eax, esi
je 0x10034862
push esi
push esi
push esi
push esi
push esi
push dword [ebp + 8]
mov eax, str.gxdte
push 1
push dword [ebp + 0xc]
push 2
push 0xf01ff
push eax
push eax
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_CreateServiceW]
mov dword [ebp - 4], eax
lea eax, [ebp - 8]
call fcn.100347c8
xor eax, eax
cmp dword [ebp - 4], esi
setne al
jmp 0x1003486c
lea eax, [ebp - 8]
call fcn.100347c8
xor eax, eax
pop esi
leave
ret 8

Function at 0x100348d2
Capabilities:
Query service status
Stop service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push ebx
xor ebx, ebx
cmp dword [ebp + 8], ebx
je 0x1003494a
push 0xf003f
push ebx
push ebx
mov dword [ebp - 4], ebx
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov dword [ebp - 8], eax
cmp eax, ebx
je 0x10034942
push esi
push 0xf01ff
push dword [ebp + 8]
lea esi, [ebp - 8]
call fcn.1003479a
pop esi
cmp dword [ebp - 8], ebx
je 0x10034942
push edi
push 6
pop ecx
xor eax, eax
mov dword [ebp - 0x24], ebx
lea edi, [ebp - 0x20]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x24]
push eax
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
pop edi
test eax, eax
je 0x10034942
lea eax, [ebp - 0x24]
push eax
push 1
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
je 0x10034942
inc ebx
lea eax, [ebp - 8]
call fcn.100347c8
mov eax, ebx
pop ebx
leave
ret 4

Function at 0x100349af
Capabilities:
Delete service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
push edi
xor edi, edi
cmp dword [ebp + 8], edi
je 0x100349fd
push 0xf003f
push edi
push edi
mov dword [ebp - 8], edi
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov dword [ebp - 0xc], eax
cmp eax, edi
je 0x100349f5
push 0x10000
push dword [ebp + 8]
lea esi, [ebp - 0xc]
call fcn.1003479a
cmp dword [ebp - 0xc], edi
je 0x100349f5
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_DeleteService]
mov edi, eax
lea eax, [ebp - 0xc]
call fcn.100347c8
mov eax, edi
pop edi
pop esi
leave
ret 4