joyce8/EMBER2024-capa huggingface dataset:
Function at 0x404ceb
Capabilities:
Accept command line arguments
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x19c
push ebx
push esi
push edi
push 0xfd873d80
push 0xc
push 0x415f54
call fcn.0040a71a
add esp, 0xc
push eax
push ecx
call fcn.00408a24
pop ecx
push eax
call fcn.00408ba0
pop ecx
pop ecx
test eax, eax
je 0x404d2c
call fcn.004072e6
call fcn.00404cdb
xor ebx, ebx
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push 0x104
mov esi, 0x41b5d8
push esi
push ebx
mov dword [0x41b2b0], eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push esi
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
sub eax, esi
sar eax, 1
inc eax
push eax
push esi
push 0x41b2b8
call dword [sym.imp.SHLWAPI.dll_StrCpyNW]
call fcn.00401000
mov esi, eax
mov dword [esp + 0x14], esi
cmp esi, ebx
je 0x404e3c
push esi
call fcn.0040678a
pop ecx
test al, al
jne 0x404e37
push esi
call fcn.004058be
pop ecx
push esi
call fcn.004026e3
pop ecx
test al, al
je 0x404e3c
lea eax, [esp + 0x18]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
call fcn.00404453
push ebx
push ebx
push 1
push ebx
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov dword [0x41b2ac], eax
call fcn.0040acc4
push ebx
push 0x404856
mov dword [0x41b2b4], eax
call fcn.0040ace4
pop ecx
pop ecx
push 0x8007
call dword [sym.imp.KERNEL32.dll_SetErrorMode]
lea eax, [esp + 0x10]
push eax
mov dword [esp + 0x14], ebx
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
push dword [esp + 0x10]
push esi
call fcn.004049ce
mov eax, dword [0x41b2b4]
pop ecx
pop ecx
call fcn.0040ad31
mov edi, dword [0x41b2b4]
call fcn.0040ad6c
mov esi, dword [0x41b2ac]
call fcn.00409a17
mov eax, dword [esp + 0x14]
call fcn.0041354c
cmp byte [0x41bdb8], bl
je 0x404e3c
call fcn.004072e6
call fcn.00404cdb
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4055fa
Capabilities:
Schedule task via itaskservice

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push ebx
push esi
push edi
xor ebx, ebx
push ebx
push ebx
call dword [sym.imp.ole32.dll_CoInitializeEx]
test eax, eax
js 0x405778
push ebx
push ebx
push ebx
push 3
push 6
push ebx
push ebx
push 0xffffffffffffffff
push ebx
call dword [sym.imp.ole32.dll_CoInitializeSecurity]
test eax, eax
js 0x405772
lea eax, [ebp - 8]
push eax
push 0x4154a8
push 1
push ebx
push 0x4156b8
mov dword [ebp - 8], ebx
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
js 0x405772
mov ecx, dword [ebp - 8]
cmp ecx, ebx
je 0x405772
xor eax, eax
mov word [ebp - 0x20], ax
lea edi, [ebp - 0x1e]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosw word es:[edi], ax
sub esp, 0x10
mov edi, esp
lea esi, [ebp - 0x20]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
sub esp, 0x10
mov edi, esp
lea esi, [ebp - 0x20]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
sub esp, 0x10
mov edi, esp
lea esi, [ebp - 0x20]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov eax, dword [ecx]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
sub esp, 0x10
mov edi, esp
lea esi, [ebp - 0x20]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
push ecx
movsd dword es:[edi], dword [esi]
call dword [eax + 0x28]
test eax, eax
js 0x405769
push 0x5fc8e8b3
push 1
push 0x415fdc
call fcn.0040a71a
add esp, 0xc
push eax
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
lea edx, [ebp - 0xc]
mov esi, eax
mov eax, dword [ebp - 8]
push edx
push esi
mov dword [ebp - 0xc], ebx
mov ecx, dword [eax]
push eax
call dword [ecx + 0x1c]
test eax, eax
js 0x405762
cmp dword [ebp - 0xc], ebx
je 0x405762
mov eax, dword [ebp - 8]
lea edx, [ebp - 4]
push edx
push ebx
mov dword [ebp - 4], ebx
mov ecx, dword [eax]
push eax
call dword [ecx + 0x24]
test eax, eax
js 0x405759
cmp dword [ebp - 4], ebx
je 0x405759
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call fcn.00405275
add esp, 0xc
test al, al
je 0x405750
mov eax, dword [ebp - 4]
lea edx, [ebp - 0x10]
push edx
mov dword [ebp - 0x10], ebx
mov ecx, dword [eax]
push eax
call dword [ecx + 0x3c]
test eax, eax
js 0x405750
mov eax, dword [ebp - 0x10]
cmp eax, ebx
je 0x405750
mov ecx, dword [eax]
push 1
push eax
call dword [ecx + 0x48]
test eax, eax
js 0x405747
push dword [ebp - 0xc]
mov edi, dword [ebp - 4]
call fcn.0040554a
pop ecx
mov bl, al
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
push esi
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
call dword [sym.imp.ole32.dll_CoUninitialize]
pop edi
pop esi
mov al, bl
pop ebx
leave
ret
Function at 0x40695f
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
xor ebx, ebx
push ebx
push dword [ebp + 8]
call dword [sym.imp.VERSION.dll_GetFileVersionInfoSizeA]
mov edi, eax
cmp edi, ebx
je 0x4069e1
push ebx
call fcn.00408cd8
mov esi, eax
pop ecx
cmp esi, ebx
je 0x4069e1
push esi
push edi
push ebx
push dword [ebp + 8]
call dword [sym.imp.VERSION.dll_GetFileVersionInfoA]
test eax, eax
je 0x4069dc
push ebx
push 0x5fc8e8b3
push 1
push 0x415fdc
call fcn.0040a2d3
add esp, 0x10
lea ecx, [ebp - 4]
push ecx
lea ecx, [ebp - 8]
push ecx
push eax
push esi
call dword [sym.imp.VERSION.dll_VerQueryValueA]
test eax, eax
je 0x4069dc
mov eax, dword [ebp - 4]
cmp eax, 0x34
jbe 0x4069cb
push 0x34
pop eax
push eax
push dword [ebp - 8]
push dword [ebp + 0xc]
call sub.ntdll.dll_memcpy
add esp, 0xc
mov bl, 1
call fcn.00408de5
pop edi
pop esi
mov al, bl
pop ebx
leave
ret

Function at 0x406a46
Capabilities:
Read file via mapping

Disassembly:
cmp dword [0x419b24], 0xffffffff
jne 0x406ab8
push ebx
push edi
xor edi, edi
push edi
push edi
push 3
push edi
push 1
push 0x80000000
push 0x41b5d8
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x406ab6
push esi
push edi
push edi
push edi
push 2
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov esi, eax
cmp esi, edi
je 0x406aae
push edi
push edi
push edi
push 4
push esi
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
cmp eax, edi
je 0x406aa9
mov ecx, dword [eax + 0x3c]
mov ecx, dword [ecx + eax + 0x58]
push eax
mov dword [0x419b24], ecx
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
call fcn.00409a17
mov esi, ebx
call fcn.00409a17
pop esi
pop edi
pop ebx
mov eax, dword [0x419b24]
ret
Function at 0x406abe
Capabilities:
Get keyboard layout

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
push edi
xor ebx, ebx
push ebx
push 0xdc8b3bd1
push 9
push 0x4161dc
mov dword [ebp - 8], ebx
mov dword [ebp - 0xc], ebx
call fcn.0040a2d3
push eax
mov eax, dword [ebp + 8]
call fcn.0041365f
mov esi, eax
add esp, 0x14
cmp esi, ebx
je 0x406b4d
push ebx
push 0x40c25ed1
push 9
push 0x4161e8
call fcn.0040a2d3
push eax
mov eax, esi
call fcn.0041365f
mov edi, eax
add esp, 0x14
cmp edi, ebx
je 0x406b4d
call fcn.00413602
mov dword [ebp - 8], eax
push 8
add eax, eax
call fcn.00408cd8
xor esi, esi
pop ecx
mov dword [ebp - 0xc], eax
cmp dword [ebp - 8], ebx
jbe 0x406b4d
push esi
mov eax, edi
call fcn.00413629
pop ecx
call fcn.0041371b
mov ecx, dword [ebp - 0xc]
mov word [ecx + esi*2], ax
inc esi
cmp esi, dword [ebp - 8]
jb 0x406b32
mov edi, dword [sym.imp.USER32.dll_GetKeyboardLayoutList]
push ebx
push ebx
mov byte [ebp - 1], bl
call edi
mov esi, eax
cmp esi, ebx
je 0x406bb2
push ebx
shl eax, 2
call fcn.00408cd8
mov ebx, eax
pop ecx
test ebx, ebx
je 0x406bb2
push ebx
push esi
mov byte [ebp - 1], 0
call edi
xor esi, esi
test eax, eax
je 0x406ba3
xor edx, edx
cmp dword [ebp - 8], edx
jbe 0x406b98
movzx ecx, word [ebx + esi*4]
mov edi, dword [ebp - 0xc]
cmp cx, word [edi + edx*2]
je 0x406b9f
inc edx
cmp edx, dword [ebp - 8]
jb 0x406b89
inc esi
cmp esi, eax
jb 0x406b7e
jmp 0x406ba3
mov byte [ebp - 1], 1
cmp byte [ebp - 1], 0
mov esi, ebx
sete byte [ebp - 1]
call fcn.00408de5
mov esi, dword [ebp - 0xc]
call fcn.00408de5
mov al, byte [ebp - 1]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x406bc2
Capabilities:
Connect to http server
Create http request
Parse url
Read data from internet
Receive data
Send data
Send http request

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x754
push ebx
push esi
push edi
push 0x38
xor esi, esi
lea eax, [ebp - 0x48]
push esi
push eax
xor edi, edi
call sub.ntdll.dll_memset
lea eax, [ebp - 0x150]
mov dword [ebp - 0x3c], eax
add esp, 0xc
lea eax, [ebp - 0x350]
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x4c]
push eax
push 0x10000000
push esi
push dword [ebp + 8]
mov dword [ebp - 0x4c], 0x3c
mov dword [ebp - 0x38], 0x100
mov dword [ebp - 0x1c], 0x200
call dword [sym.imp.WININET.dll_InternetCrackUrlA]
push esi
push esi
push esi
push esi
push esi
call dword [sym.imp.WININET.dll_InternetOpenA]
mov dword [ebp - 0x10], eax
cmp eax, esi
je 0x406d08
push esi
push esi
push 3
push esi
push esi
push dword [ebp - 0x34]
lea ecx, [ebp - 0x150]
push ecx
push eax
call dword [sym.imp.WININET.dll_InternetConnectA]
mov dword [ebp - 0xc], eax
cmp eax, esi
je 0x406cff
push esi
push 0x37ae62a5
push 3
push 0x4161f4
call fcn.0040a2d3
add esp, 0x10
push esi
push esi
push esi
push esi
push esi
lea ecx, [ebp - 0x350]
push ecx
push eax
push dword [ebp - 0xc]
call dword [sym.imp.WININET.dll_HttpOpenRequestA]
mov dword [ebp - 8], eax
cmp eax, esi
je 0x406cf6
push esi
push esi
push esi
push esi
push eax
call dword [sym.imp.WININET.dll_HttpSendRequestA]
test eax, eax
je 0x406ced
cmp dword [ebp + 0xc], esi
je 0x406cea
xor ebx, ebx
jmp 0x406cc6
mov eax, dword [ebp - 4]
cmp eax, esi
je 0x406ce3
add eax, ebx
call fcn.00408d45
push dword [ebp - 4]
mov edi, eax
lea eax, [ebp - 0x750]
push eax
lea eax, [ebx + edi]
push eax
call sub.ntdll.dll_memcpy
add esp, 0xc
add ebx, dword [ebp - 4]
lea eax, [ebp - 4]
push eax
push 0x400
lea eax, [ebp - 0x750]
push eax
push dword [ebp - 8]
call dword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
jne 0x406c9d
mov eax, dword [ebp + 0xc]
mov dword [eax], ebx
jmp 0x406ced
xor edi, edi
inc edi
push dword [ebp - 8]
call dword [sym.imp.WININET.dll_InternetCloseHandle]
push dword [ebp - 0xc]
call dword [sym.imp.WININET.dll_InternetCloseHandle]
push dword [ebp - 0x10]
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret

Function at 0x407238
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
xor ebx, ebx
push ebx
lea eax, [ebp - 4]
push eax
push ebx
push 0x20119
push ebx
push ebx
push ebx
push ecx
call fcn.00408a24
pop ecx
push eax
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x4072a7
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push ebx
push ebx
push 0xe317c32d
push 9
push 0x4162ac
mov dword [ebp - 8], ebx
mov dword [ebp - 0xc], 4
call fcn.0040a71a
add esp, 0xc
push eax
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 8], ebx
sete bl
mov al, bl
pop ebx
leave
ret
Function at 0x4072e6
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
push esi
call fcn.0040d385
call fcn.0040577f
push 0x104
lea eax, [ebp - 0x210]
push eax
push 0x19a64fd4
push 7
push 0x4162b8
call fcn.0040a71a
add esp, 0xc
push eax
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
mov esi, 0x41b5d8
push esi
push esi
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
push eax
push 0xc834e9f8
push 0x50
push 0x4162c0
call fcn.0040a71a
add esp, 0xc
push eax
lea ecx, [ebp - 4]
call fcn.0040c998
add esp, 0xc
test eax, eax
je 0x40737c
push dword [ebp - 4]
lea eax, [ebp - 0x210]
push eax
call fcn.00409f8f
pop ecx
pop ecx
push 0
push esi
push 0x3005
push 4
call dword [sym.imp.SHELL32.dll_SHChangeNotify]
mov esi, dword [ebp - 4]
call fcn.00408de5
pop esi
leave
ret

Function at 0x40737f
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
push esi
push 0x38
xor esi, esi
lea eax, [ebp - 0x38]
push esi
push eax
call sub.ntdll.dll_memset
add esp, 0xc
push 0x52bb8675
push 5
push 0x415c10
mov dword [ebp - 0x3c], 0x3c
mov dword [ebp - 0x38], 0xc640
call fcn.0040a71a
mov dword [ebp - 0x30], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp + 0xc]
add esp, 0xc
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x20], esi
call dword [sym.imp.USER32.dll_GetForegroundWindow]
mov dword [ebp - 0x34], eax
lea eax, [ebp - 0x3c]
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
test eax, eax
je 0x4073fa
cmp dword [ebp - 4], esi
je 0x4073fa
push 0xffffffffffffffff
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov esi, dword [ebp - 4]
call fcn.00409a17
pop esi
leave
ret
Function at 0x4073fd
Capabilities:
Check os version
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x738
push esi
lea eax, [ebp - 4]
push edi
push eax
call fcn.0040d764
pop ecx
push 6
push 0
call dword [sym.imp.ole32.dll_CoInitializeEx]
push 0x104
lea eax, [ebp - 0x328]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
lea eax, [ebp - 0x328]
push eax
push ecx
push 0xce274bab
push 0xf
push 0x416314
call fcn.0040a71a
mov esi, dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
push eax
lea eax, [ebp - 0x530]
push eax
call esi
add esp, 0xc
push 0x206f955f
push 0x1a
push 0x416324
call fcn.0040a71a
add esp, 0xc
push eax
lea eax, [ebp - 0x530]
push eax
call fcn.0040737f
pop ecx
pop ecx
lea eax, [ebp - 0x328]
push eax
push ecx
push 0x26f5de34
push 0x10
push str.jnr_
call fcn.0040a71a
add esp, 0x10
push eax
lea eax, [ebp - 0x738]
push eax
call esi
add esp, 0xc
push 0x8d9ce7a1
push 0x11
push 0x416354
call fcn.0040a71a
add esp, 0xc
push eax
lea eax, [ebp - 0x738]
push eax
call fcn.0040737f
push 0x110
lea eax, [ebp - 0x11c]
push 0
push eax
call sub.ntdll.dll_memset
add esp, 0x14
lea eax, [ebp - 0x120]
push eax
mov dword [ebp - 0x120], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [ebp - 0x11c], 6
jne 0x40755c
push 0xc7f6f7a2
push 0x21
push 0x416368
call fcn.0040a71a
add esp, 0xc
push eax
push ecx
mov edi, 0x3a2dc630
push edi
push 0xb
mov esi, 0x41638c
push esi
call fcn.0040a71a
add esp, 0x10
push eax
call fcn.0040737f
push 0x6831b69d
push 0x31
push 0x416398
call fcn.0040a71a
add esp, 0x14
push eax
push ecx
push edi
push 0xb
push esi
call fcn.0040a71a
add esp, 0x10
push eax
call fcn.0040737f
pop ecx
pop ecx
call dword [sym.imp.ole32.dll_CoUninitialize]
pop edi
pop esi
leave
ret

Function at 0x40759c
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ecx
push ebx
push ebp
xor ebx, ebx
push esi
push edi
cmp word [0x41b7f0], bx
jne 0x4075b7
push 0x41b7f0
call fcn.004044ac
pop ecx
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
call esi
mov ebp, eax
call esi
mov edi, 0xea60
jmp 0x4075ea
push 0x41b7f0
push 0
push 0x1f0003
call dword [sym.imp.KERNEL32.dll_OpenEventW]
test eax, eax
jne 0x4075f2
push 1
call dword [sym.imp.KERNEL32.dll_Sleep]
call esi
sub eax, ebp
cmp eax, edi
jb 0x4075ca
jmp 0x4075f4
mov bl, 1
pop edi
pop esi
pop ebp
mov al, bl
pop ebx
pop ecx
ret

Function at 0x40760f
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
lea eax, [ebp - 4]
push eax
push ecx
push 0xb0d990f4
push 0x39
push 0x4163cc
xor ebx, ebx
call fcn.0040a71a
add esp, 0x10
push eax
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
jne 0x407683
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0xc]
push eax
push ebx
push ebx
push 0xbb19b981
push 9
push 0x416408
mov dword [ebp - 8], 4
call fcn.0040a71a
add esp, 0xc
push eax
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x40767a
cmp dword [ebp - 0xc], ebx
setne bl
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, bl
pop ebx
leave
ret
Function at 0x407688
Capabilities:
Create process on windows
Create thread
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x164
push ebx
push esi
push edi
push 0x104
mov edi, 0x41b908
push edi
xor ebx, ebx
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push 0x118
lea eax, [ebp - 0x15c]
push ebx
push eax
mov dword [ebp - 0x160], ebx
call sub.ntdll.dll_memset
add esp, 0xc
lea esi, [ebp - 0x160]
call fcn.004069e8
cmp dword [ebp - 0x15c], 6
jb 0x407781
mov byte [ebp - 1], 1
call fcn.0040760f
test al, al
jne 0x40775a
push 0x38
lea eax, [ebp - 0x3c]
push ebx
push eax
call sub.ntdll.dll_memset
add esp, 0xc
push 0x52bb8675
push 5
push 0x415c10
mov dword [ebp - 0x40], 0x3c
mov dword [ebp - 0x3c], 0xc400
call fcn.0040a71a
add esp, 0xc
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x30], edi
call dword [sym.imp.USER32.dll_GetForegroundWindow]
mov dword [ebp - 0x38], eax
lea eax, [ebp - 0x40]
push eax
mov dword [ebp - 0x24], 1
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
test eax, eax
je 0x407745
cmp dword [ebp - 8], ebx
je 0x407745
mov byte [ebp - 1], bl
call fcn.0040759c
test al, al
je 0x407755
push ebx
call dword [sym.imp.KERNEL32.dll_ExitProcess]
cmp byte [ebp - 1], bl
je 0x40776a
call fcn.00403d0c
test al, al
jne 0x40776a
call fcn.00402d1d
jmp 0x407781
push ebx
push ebx
push ebx
push 0x4075fc
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov esi, eax
call fcn.00409a17
pop edi
pop esi
pop ebx
leave
ret
Function at 0x407ba9
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
push ebx
push esi
push dword [edi]
push dword [ebp + 8]
push 0x53356d69
push 5
push 0x416458
call fcn.0040a71a
add esp, 0xc
push eax
lea eax, [ebp - 0x214]
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
xor ebx, ebx
push ebx
push ebx
push 1
push ebx
push ebx
push 0x40000000
lea eax, [ebp - 0x214]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x407c16
push ebx
lea eax, [ebp - 8]
push eax
push dword [edi + 8]
push dword [edi + 4]
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
call fcn.00409a17
pop esi
pop ebx
leave
ret

Function at 0x40826a
Capabilities:
Get disk information
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
xor edi, edi
xor ebx, ebx
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x18], 0x80000002
mov dword [ebp - 0x14], 0x80000001
xor esi, esi
lea eax, [ebp - 8]
push eax
push 0x20019
push edi
push ecx
push 0xccca4e38
push 0x3b
push 0x4164f4
call fcn.0040a71a
add esp, 0x10
push eax
push dword [ebp + esi*4 - 0x18]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x408305
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 4]
push eax
push edi
push edi
push 0x3714fba8
push 8
push 0x416530
mov dword [ebp - 4], edi
mov dword [ebp - 0xc], 4
call fcn.0040a71a
add esp, 0xc
push eax
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x4082fc
cmp dword [ebp - 4], edi
je 0x4082fc
or ebx, dword [ebp - 4]
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
inc esi
cmp esi, 2
jb 0x408290
mov eax, ebx
pop edi
not eax
and eax, dword [ebp - 0x10]
pop esi
pop ebx
leave
ret

Function at 0x408317
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x418
push esi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
mov esi, eax
cmp esi, 2
jb 0x408380
cmp esi, 3
jbe 0x40833b
cmp esi, 6
jne 0x408380
push 0x208
lea eax, [ebp - 0x414]
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_QueryDosDeviceW]
test eax, eax
je 0x408380
push 4
push ecx
push 0xd33653ac
push 4
push 0x41653c
call fcn.0040a71a
add esp, 0x10
push eax
lea eax, [ebp - 0x414]
push eax
call dword [sym.imp.SHLWAPI.dll_StrCmpNW]
test eax, eax
jne 0x408380
xor esi, esi
inc esi
mov eax, esi
pop esi
leave
ret
Function at 0x408385
Capabilities:
Enumerate network shares

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
push 0x13
push 1
push 2
call dword [sym.imp.MPR.dll_WNetOpenEnumW]
test eax, eax
jne 0x408419
or dword [ebp - 4], 0xffffffff
push ebx
push esi
mov eax, 0x320
xor ebx, ebx
push ebx
mov dword [ebp - 0xc], eax
call fcn.00408cd8
mov esi, eax
pop ecx
cmp esi, ebx
je 0x408409
lea eax, [ebp - 0xc]
push eax
push esi
lea eax, [ebp - 4]
push eax
push dword [ebp - 8]
call dword [sym.imp.MPR.dll_WNetEnumResourceW]
test eax, eax
jne 0x408409
cmp dword [ebp - 4], ebx
jbe 0x408409
push edi
lea edi, [esi + 0x14]
test byte [edi - 8], 2
push dword [ebp + 0x10]
je 0x4083f8
push dword [ebp + 0xc]
lea eax, [edi - 0x14]
push eax
call fcn.00408385
add esp, 0xc
jmp 0x4083ff
push dword [edi]
call dword [ebp + 0xc]
pop ecx
pop ecx
inc ebx
add edi, 0x20
cmp ebx, dword [ebp - 4]
jb 0x4083de
pop edi
call fcn.00408de5
push dword [ebp - 8]
call dword [sym.imp.MPR.dll_WNetCloseEnum]
pop esi
pop ebx
leave
ret
Function at 0x4084c9
Capabilities:
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x66c
push ebx
push esi
push edi
push dword [ebp + 8]
lea eax, [esp + 0x26c]
push eax
mov eax, 0x416544
call fcn.0040cc7c
pop ecx
pop ecx
test al, al
je 0x408647
push 0x250
xor ebx, ebx
lea eax, [esp + 0x18]
push ebx
push eax
call sub.ntdll.dll_memset
add esp, 0xc
lea eax, [esp + 0x14]
push eax
lea eax, [esp + 0x26c]
push eax
mov dword [esp + 0x18], 1
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [esp + 0xc], eax
cmp eax, 0xffffffff
je 0x408647
mov edi, dword [sym.imp.KERNEL32.dll_Sleep]
push ebx
push dword [0x41b2ac]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x40863d
lea eax, [esp + 0x40]
call fcn.0040cca8
test al, al
jne 0x408620
test byte [esp + 0x14], 0x10
lea eax, [esp + 0x268]
je 0x4085ad
push dword [ebp + 8]
push eax
lea eax, [esp + 0x48]
call fcn.0040cc7c
pop ecx
pop ecx
test al, al
je 0x408620
cmp dword [ebp + 0x14], ebx
je 0x40858f
push dword [ebp + 0x14]
call edi
push dword [ebp + 0x14]
lea eax, [esp + 0x26c]
push dword [ebp + 0x18]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push eax
call fcn.004084c9
add esp, 0x14
jmp 0x408620
mov esi, dword [0x41bb24]
push eax
call fcn.00407edb
pop ecx
test al, al
jne 0x4085d6
mov esi, dword [0x41bd3c]
lea eax, [esp + 0x268]
push eax
call fcn.00407edb
pop ecx
test al, al
jne 0x408620
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x34]
cmp eax, dword [0x41a06c]
jl 0x408620
jg 0x4085f0
cmp ecx, dword [0x41a068]
jb 0x408620
push 0x2e
lea eax, [esp + 0x44]
push eax
call dword [sym.imp.SHLWAPI.dll_StrChrW]
test eax, eax
je 0x408620
push dword [ebp + 0x10]
lea eax, [esp + 0x14]
push eax
push dword [ebp + 8]
call dword [ebp + 0xc]
add esp, 0xc
test eax, eax
je 0x408639
cmp dword [ebp + 0x18], ebx
je 0x408620
push dword [ebp + 0x18]
call edi
lea eax, [esp + 0x14]
push eax
push dword [esp + 0x10]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x40853a
jmp 0x40863d
mov dword [esp + 0x10], ebx
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_FindClose]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret