joyce8/EMBER2024-capa huggingface dataset:
Function at 0x403230
Capabilities:
Create http request
Read data from internet
Receive data

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x10b4
call fcn.0040b990
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, ecx
mov eax, dword [edi + 8]
test eax, eax
je 0x40325f
push 0x415be4
push eax
call dword [sym.imp.USER32.dll_SetWindowTextW]
mov edi, dword [edi + 4]
test edi, edi
je 0x40328e
mov esi, dword [sym.imp.USER32.dll_SendMessageW]
push 0
push 0
push 0x408
push edi
call esi
inc eax
mov ecx, 0x64
cmp eax, ecx
push 0
cmovg eax, ecx
push eax
push 0x402
push edi
call esi
mov edi, dword [0x419ff8]
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcpyW]
push str.http:__tj.wenguanjia.com:8800_uninstall.ashx_uid_djumpfalse
push dword [edi + 0x20]
mov esi, dword [edi + 0x40]
call ebx
push esi
push dword [edi + 0x20]
lea eax, [ebp - 0x10b0]
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
mov esi, dword [0x419ff8]
add esp, 0xc
push dword [esi + 0xc]
call dword [sym.imp.KERNEL32.dll_lstrlenW]
test eax, eax
jne 0x4032d8
push str.wenguanjia
push dword [esi + 0xc]
call ebx
push 0
push 0
push 0
push 0
push dword [esi + 0xc]
call dword [sym.imp.WININET.dll_InternetOpenW]
mov esi, eax
test esi, esi
je 0x403338
push 0
push 0x80000000
push 0
push 0
lea eax, [ebp - 0x10b0]
push eax
push esi
call dword [sym.imp.WININET.dll_InternetOpenUrlW]
mov ebx, dword [sym.imp.WININET.dll_InternetCloseHandle]
mov edi, eax
test edi, edi
je 0x403335
lea eax, [ebp - 0x10b4]
mov dword [ebp - 0x10b4], 0
push eax
push 0x64
lea eax, [ebp - 0x68]
push eax
push edi
call dword [sym.imp.WININET.dll_InternetReadFile]
push edi
call ebx
push esi
call ebx
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004057df
mov esp, ebp
pop ebp
ret

Function at 0x403950
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push esi
push 0
push dword [0x41a000]
mov esi, ecx
push 0
push dword [esi + 4]
lea eax, [esi + 0x1c]
push 0x13a
push 0x1f1
push 0
push 0
push 0x40000000
push 0x4156d4
push eax
push 0x10000
call dword [sym.imp.USER32.dll_CreateWindowExW]
mov dword [esi], eax
test eax, eax
jne 0x403995
pop esi
pop ebp
ret 4
push esi
push 0xffffffffffffffeb
push eax
call dword [sym.imp.USER32.dll_SetWindowLongW]
push 0
push dword [0x41a000]
push 0
push dword [esi]
push 0x14
push 0x1f7
push 0x3a
push 0
push 0x50000010
push 0x4156d4
push str.Static
push 0
call dword [sym.imp.USER32.dll_CreateWindowExW]
mov ecx, esi
call fcn.00403820
mov ecx, esi
call fcn.00403760
mov ecx, esi
call fcn.004038e0
push dword [ebp + 8]
push dword [esi]
call dword [sym.imp.USER32.dll_ShowWindow]
push dword [esi]
call dword [sym.imp.USER32.dll_UpdateWindow]
mov eax, 1
pop esi
pop ebp
ret 4
Function at 0x403c30
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
push ebx
push esi
push edi
mov esi, ecx
push 0xffffffffffffffeb
push dword [esi + 4]
call dword [sym.imp.USER32.dll_GetWindowLongW]
test eax, eax
je 0x403c83
mov edx, dword [eax + 0x1a4]
mov ecx, dword [eax + 0x1a8]
mov ebx, dword [eax + 0x1ac]
mov edi, dword [sym.imp.USER32.dll_EnableWindow]
mov dword [ebp - 4], ecx
test edx, edx
je 0x403c71
push 0
push edx
call edi
mov ecx, dword [ebp - 4]
test ecx, ecx
je 0x403c7a
push 0
push ecx
call edi
test ebx, ebx
je 0x403c83
push 0
push ebx
call edi
mov eax, dword [esi]
test eax, eax
jne 0x403d1a
push 0x30
push eax
lea eax, [ebp - 0x34]
push eax
call fcn.00408ec0
mov eax, dword [0x41a000]
add esp, 0xc
mov dword [ebp - 0x34], 0x30
mov dword [ebp - 0x30], 3
mov dword [ebp - 0x2c], 0x403a00
push 5
mov dword [ebp - 0x20], eax
call dword [sym.imp.USER32.dll_GetSysColorBrush]
mov dword [ebp - 0x14], eax
lea eax, [esi + 0x1c]
push 0x7f00
push 0
mov dword [ebp - 0xc], eax
call dword [sym.imp.USER32.dll_LoadCursorW]
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x34]
push eax
call dword [sym.imp.USER32.dll_RegisterClassExW]
push 5
mov ecx, esi
call fcn.00403950
test eax, eax
je 0x403d11
push 0x403bc0
push 0
push 0x40a
push dword [esi]
call dword [sym.imp.USER32.dll_SetTimer]
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0x403bc0
push 0
push 0x40a
push eax
call dword [sym.imp.USER32.dll_SetTimer]
push 5
push dword [esi]
call dword [sym.imp.USER32.dll_ShowWindow]
pop edi
pop esi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x404110
Capabilities:
Query or enumerate registry value
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push esi
mov esi, ecx
mov dword [ebp - 4], 0
cmp dword [esi + 0x28], 0
je 0x404147
lea eax, [esi + 0xa4]
push eax
push 0
push str.Install_Plan
push str.config
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
mov dword [esi + 0x3c], eax
pop esi
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 8]
mov dword [ebp - 0xc], 4
push eax
push 0x20219
push 0
push str.SOFTWAREwenguanjia
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x404192
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x10]
push eax
push 0
push str.Install_Plan
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 4]
mov dword [esi + 0x3c], eax
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x4041a0
Capabilities:
Query or enumerate registry value
Read .ini file
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
mov esi, ecx
cmp dword [esi + 0x28], 0
je 0x4041df
lea eax, [esi + 0xa4]
push eax
push 0x104
push dword [esi]
push 0x4156d4
push str.InstallPath
push str.config
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
mov eax, dword [esi]
cmp word [eax], 0
je 0x40423e
pop esi
mov esp, ebp
pop ebp
ret
mov esi, dword [esi]
lea eax, [ebp - 4]
push ebx
push eax
push 0x20219
push 0
push str.SOFTWAREwenguanjia
push 0x80000002
mov dword [ebp - 8], 0x104
xor bl, bl
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x40423e
lea eax, [ebp - 8]
push eax
push esi
lea eax, [ebp - 0xc]
push eax
push 0
push str.InstallPath
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 4]
test eax, eax
movzx ebx, bl
mov ecx, 1
cmove ebx, ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test bl, bl
pop ebx
jne 0x4041da
push 0x10
push 0x415d68
push 0x415d70
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]

Function at 0x404260
Capabilities:
Query or enumerate registry value
Read .ini file
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
mov esi, ecx
cmp dword [esi + 0x28], 0
je 0x4042a1
lea eax, [esi + 0xa4]
push eax
push 0x104
push dword [esi + 4]
push 0x4156d4
push str.StartMenuPath
push str.config
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
mov eax, dword [esi + 4]
cmp word [eax], 0
je 0x404301
pop esi
mov esp, ebp
pop ebp
ret
mov esi, dword [esi + 4]
lea eax, [ebp - 4]
push ebx
push eax
push 0x20219
push 0
push str.SOFTWAREwenguanjia
push 0x80000002
mov dword [ebp - 8], 0x104
xor bl, bl
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x404301
lea eax, [ebp - 8]
push eax
push esi
lea eax, [ebp - 0xc]
push eax
push 0
push str.StartMenuPath
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 4]
test eax, eax
movzx ebx, bl
mov ecx, 1
cmove ebx, ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test bl, bl
pop ebx
jne 0x40429c
push 0x10
push 0x415d68
push 0x415d70
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
Function at 0x4045c0
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, dword [0x419ff8]
push dword [esi + 0x10]
call dword [sym.imp.KERNEL32.dll_lstrlenW]
test eax, eax
jg 0x40466d
push ebx
lea eax, [ebp - 4]
xor bl, bl
push eax
push 0x20219
push 0
push str.SOFTWAREwenguanjia
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x404609
push dword [ebp - 4]
mov bl, 1
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
movzx eax, bl
pop ebx
test eax, eax
je 0x404631
push ecx
push dword [esi + 0x10]
mov dword [esi + 0x28], 0
push str.REName
sub esp, 8
call fcn.00402010
mov eax, dword [esi + 0x10]
pop esi
mov esp, ebp
pop ebp
ret
lea eax, [esi + 0xa4]
push eax
push 0x104
push dword [esi + 0x10]
push 0x4156d4
push str.REName
push str.config
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
mov eax, dword [esi + 0x10]
cmp word [eax], 0
jne 0x40466d
push str.wenguanjia.exe
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 8
mov eax, dword [esi + 0x10]
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x4046b0
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x58
lea eax, [ebp - 0x10]
mov dword [ebp - 0x58], 0x44
push eax
lea eax, [ebp - 0x58]
mov dword [ebp - 0x54], 0
push eax
push 0
push 0
push 0x200
push 0
push 0
push 0
push dword [ebp + 0xc]
mov dword [ebp - 0x50], 0x4156d4
push 0
mov dword [ebp - 0x4c], 0
mov dword [ebp - 0x2c], 1
mov dword [ebp - 0x28], 5
mov dword [ebp - 0x24], 0
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x404727
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
mov esp, ebp
pop ebp
ret 0x10
xor al, al
mov esp, ebp
pop ebp
ret 0x10
Function at 0x404d10
Capabilities:
Acquire debug privileges
Enumerate processes
Get file system object information
Terminate process
Terminate process by name

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x71c
mov eax, dword [section..data]
xor eax, esp
mov dword [esp + 0x718], eax
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, 1
push edi
push 0
push 2
mov dword [esp + 0x1c], esi
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov edi, eax
test edi, edi
jne 0x404d62
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x718]
xor ecx, esp
call fcn.004057df
mov esp, ebp
pop ebp
ret 4
lea eax, [esp + 0x20]
mov dword [esp + 0x20], 0x22c
push eax
push edi
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
je 0x404d49
lea eax, [esp + 0x10]
push eax
push 0xf01ff
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x404e00
lea eax, [esp + 0x18]
push eax
push 0x415eb4
push 0
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
test eax, eax
je 0x404ded
mov eax, dword [esp + 0x18]
push 0
push 0
mov dword [esp + 0x25c], eax
mov eax, dword [esp + 0x24]
push 0
mov dword [esp + 0x264], eax
lea eax, [esp + 0x25c]
push eax
push 0
push dword [esp + 0x24]
mov dword [esp + 0x268], ebx
mov dword [esp + 0x274], 2
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
push dword [esp + 0x10]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x404e00
push 0x2b4
lea eax, [esp + 0x264]
push 0
push eax
call fcn.00408ec0
add esp, 0xc
lea eax, [esp + 0x260]
push 0x101
push 0x2b4
push eax
push 0
lea eax, [esp + 0x54]
push eax
call dword [sym.imp.SHELL32.dll_SHGetFileInfoW]
lea eax, [esp + 0x44]
push eax
lea eax, [esp + 0x51c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
push esi
lea eax, [esp + 0x51c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x404e89
push dword [esp + 0x28]
push eax
push 0x1fffff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
push 0
mov esi, eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
push 0
push esi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov esi, dword [esp + 0x14]
neg eax
sbb eax, eax
and ebx, eax
lea eax, [esp + 0x20]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x404e00
mov ecx, dword [esp + 0x724]
mov eax, ebx
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.004057df
mov esp, ebp
pop ebp
ret 4
Function at 0x404fa0
Capabilities:
Query or enumerate registry value
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
lea eax, [ebp - 4]
push ebx
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
push eax
push 0x20219
push 0
push str.SOFTWAREwenguanjia
push 0x80000002
call esi
test eax, eax
jne 0x405035
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp - 4]
mov dword [ebp - 8], 0x104
push eax
push 0x20219
push 0
push str.SOFTWAREwenguanjia
push 0x80000002
xor bl, bl
call esi
test eax, eax
jne 0x40502b
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
lea eax, [ebp - 0xc]
push eax
push 0
push str.TName
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 4]
test eax, eax
movzx ebx, bl
mov ecx, 1
cmove ebx, ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test bl, bl
jne 0x405064
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 8
mov eax, dword [0x419ff8]
mov esi, dword [ebp + 8]
add eax, 0xa4
push eax
push 0x104
push esi
push 0x4156d4
push str.TName
push str.config
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
cmp word [esi], 0
je 0x40502b
pop esi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x405460
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push esi
push 0
push dword [0x41a000]
mov esi, ecx
push 0
push dword [0x41a014]
push 0x13a
push 0x1f1
push 0
push 0
push 0x40000000
push 0x4156d4
lea eax, [esi + 0xc]
push eax
push 0x10000
call dword [sym.imp.USER32.dll_CreateWindowExW]
mov dword [esi], eax
test eax, eax
jne 0x4054a8
pop esi
pop ebp
ret 4
push 0
push dword [0x41a000]
push 0
push eax
push 0x14
push 0x1f7
push 0x3a
push 0
push 0x50000010
push 0x4156d4
push str.Static
push 0
call dword [sym.imp.USER32.dll_CreateWindowExW]
mov ecx, esi
call fcn.004051f0
mov ecx, esi
call fcn.004052b0
mov ecx, esi
call fcn.00405320
push dword [ebp + 8]
push dword [esi]
call dword [sym.imp.USER32.dll_ShowWindow]
push dword [esi]
call dword [sym.imp.USER32.dll_UpdateWindow]
mov eax, 1
pop esi
pop ebp
ret 4

Function at 0x4056c0
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
push edi
push 0xffffffffffffffeb
push dword [0x41a014]
mov edi, ecx
call dword [sym.imp.USER32.dll_GetWindowLongW]
test eax, eax
je 0x4056ee
mov eax, dword [eax + 0x1a4]
test eax, eax
je 0x4056ee
push 0
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
mov eax, dword [edi]
test eax, eax
jne 0x405759
push 0x30
push eax
lea eax, [ebp - 0x30]
push eax
call fcn.00408ec0
mov eax, dword [0x41a000]
add esp, 0xc
mov dword [ebp - 0x30], 0x30
mov dword [ebp - 0x2c], 3
mov dword [ebp - 0x28], 0x405510
push 5
mov dword [ebp - 0x1c], eax
call dword [sym.imp.USER32.dll_GetSysColorBrush]
mov dword [ebp - 0x10], eax
lea eax, [edi + 0xc]
push 0x7f00
push 0
mov dword [ebp - 8], eax
call dword [sym.imp.USER32.dll_LoadCursorW]
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x30]
push eax
call dword [sym.imp.USER32.dll_RegisterClassExW]
push 5
mov ecx, edi
call fcn.00405460
pop edi
mov esp, ebp
pop ebp
ret
push 5
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
mov eax, 1
pop edi
mov esp, ebp
pop ebp
ret
Function at 0x408cd3
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_EncodePointer]
push esi
push edi
mov dword [ebp - 0x1c], eax
xor esi, esi
mov eax, dword [ebp + 0xc]
push esi
mov dword [ebp - 0x20], eax
call ebx
mov edi, eax
mov dword [ebp - 0x18], edi
call fcn.00406e4a
mov dword [ebp - 0x14], eax
cmp dword [0x419f84], esi
jne 0x408dc6
push 0x800
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
jne 0x408d53
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x408ea6
push esi
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
je 0x408ea6
push 0x4121d8
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x408ea6
push eax
call ebx
push str.GetActiveWindow
push edi
mov dword [0x419f84], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetLastActivePopup
push edi
mov dword [0x419f88], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push edi
mov dword [0x419f8c], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x419f94], eax
test eax, eax
je 0x408dc3
push str.GetProcessWindowStation
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x419f90], eax
mov edi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x408deb
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x408dde
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], esi
je 0x408e00
push 4
pop eax
jmp 0x408ea8
cmp dword [ebp - 0x14], esi
je 0x408e00
push dword [0x419f84]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x408de5
mov eax, dword [0x419f90]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, edi
je 0x408e5e
cmp dword [0x419f94], edi
je 0x408e5e
push eax
call ebx
push dword [0x419f94]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x408e5e
test eax, eax
je 0x408e5e
call ecx
test eax, eax
je 0x408e53
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [ebp - 0x18]
test eax, eax
je 0x408e53
test byte [ebp - 8], 1
jne 0x408e5e
mov edi, dword [ebp + 0x10]
or edi, 0x200000
jmp 0x408e8e
mov eax, dword [0x419f88]
cmp eax, edi
je 0x408e8b
push eax
call ebx
test eax, eax
je 0x408e8b
call eax
mov esi, eax
test esi, esi
je 0x408e8b
mov eax, dword [0x419f8c]
cmp eax, edi
je 0x408e8b
push eax
call ebx
test eax, eax
je 0x408e8b
push esi
call eax
mov esi, eax
mov edi, dword [ebp + 0x10]
push dword [0x419f84]
call ebx
test eax, eax
je 0x408ea6
push edi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push esi
call eax
jmp 0x408ea8
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004057df
mov esp, ebp
pop ebp
ret
Function at 0x6d48dc10
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
pushal
call 0x6d48dc1f
pop dword [ebp - 0x44]
mov eax, 0x6d48dc1f
sub dword [ebp - 0x44], eax
mov dword [ebp - 0x54], 0xebdba58c
add dword [ebp - 0x54], 0x62769fbf
mov dword [ebp - 0x50], 0xe4c28c5
sub dword [ebp - 0x50], 0xdc18dc80
mov dword [ebp - 0x4c], 0x4f5ea0a5
sub dword [ebp - 0x4c], 0x3125c77
mov dword [ebp - 0x48], 0x10efc414
add dword [ebp - 0x48], 0xef103bec
lea eax, [ebp - 0x54]
push eax
mov eax, sym.imp.kernel32.dll_GetModuleHandleA
add eax, dword [ebp - 0x44]
call dword [eax]
mov dword [ebp - 0x54], 0xdd998cfc
add dword [ebp - 0x54], 0x96d8dc5a
mov dword [ebp - 0x50], 0xf303fd40
add dword [ebp - 0x50], 0x4e686435
mov dword [ebp - 0x4c], 0xb8197f19
add dword [ebp - 0x4c], 0xab55ed53
mov dword [ebp - 0x48], 0xa85cfaa6
add dword [ebp - 0x48], 0x57a3055a
lea ebx, [ebp - 0x54]
push ebx
push eax
mov eax, sym.imp.kernel32.dll_GetProcAddress
add eax, dword [ebp - 0x44]
call dword [eax]
push 0x40
push 0x1000
push 0x36c1f
push 0
call eax
mov ecx, 0x62adfc70
add ecx, 0x9d52485e
xor esi, esi
add esi, eax
mov edx, 0xa28709c5
add edx, 0xcac2ea3b
add edx, dword [ebp - 0x44]
mov edi, 0x7c0b0509
add edi, 0x4f316c2c
mov ebx, dword [edx]
add dword [ebp - 0x24], ecx
xor ebx, edi
mov dword [esi], ebx
add dword [ebp - 0x10], esi
add esi, 0x6933d40e
add esi, 0x96cc2bf6
add edx, 0x979558a7
add edx, 0x686aa75d
loop 0x6d48dd34
add eax, 0x1574b214
sub eax, 0x1573ac09
mov ebx, eax
add eax, 5
mov ecx, 0xe896ab07
sub ecx, 0x7b4eab07
add ecx, dword [ebp - 0x44]
call ebx
leave
ret

Function at 0x6d491820
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x6d49bb70]
jne 0x6d49182a
repz ret
jmp fcn.6d491dab
Function at 0x402450
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push 0xffffffffffffffff
push 0x403038
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x14
push esi
push edi
mov esi, ecx
sub esp, 8
lea eax, [esp + 0x38]
mov edi, esp
mov dword [esp + 0x10], esp
sub esp, 8
mov dword [esp + 0x34], 0
mov ecx, esp
mov dword [esp + 0x18], esp
push eax
call fcn.004024f0
push edi
mov ecx, esi
call fcn.00402580
lea ecx, [esp + 0x14]
push ecx
mov ecx, esi
call fcn.00402510
mov esi, dword [esp + 0x2c]
mov ecx, dword [eax]
mov edx, esi
mov dword [esp + 0x24], 0xffffffff
mov dword [edx], ecx
mov ecx, dword [eax + 4]
mov dword [edx + 4], ecx
mov ecx, dword [eax + 8]
mov dword [edx + 8], ecx
mov eax, dword [eax + 0xc]
lea ecx, [esp + 0x30]
mov dword [edx + 0xc], eax
call sub.MFC42.DLL_COleDispatchDriver::ReleaseDispatch
mov ecx, dword [esp + 0x1c]
mov eax, esi
pop edi
mov dword fs:[0], ecx
pop esi
add esp, 0x20
ret 0xc
Function at 0x403460
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffdf4
mov ebx, edx
mov esi, eax
mov eax, ebx
xor edx, edx
call fcn.00405c7c
test esi, esi
jne 0x403498
push 0x105
lea eax, [esp + 4]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameW
mov ecx, eax
mov edx, esp
mov eax, ebx
call fcn.00405db8
jmp 0x4034b6
call sub.kernel32.dll_GetCommandLineW
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.004033a4
mov edi, eax
test esi, esi
je 0x4034b6
cmp dword [ebx], 0
je 0x4034b6
dec esi
jmp 0x40349f
add esp, 0x20c
pop edi
pop esi
pop ebx
ret

Function at 0x403b9c
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x58f020]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x403c34
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
jne 0x403c14
xor eax, eax
push ebp
push 0x403c0d
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0xc], 4
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push 0
push 0
push 0x403c6c
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegQueryValueExW
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x403c14
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey
ret
movzx eax, word [0x58f020]
and ax, 0xffc0
movzx edx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x58f020], ax
mov esp, ebp
pop ebp
ret

Function at 0x404eb0
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x597054], 0
je 0x404f11
cmp word [0x597330], 0xd7b2
jne 0x404ed9
cmp dword [0x597338], 0
jbe 0x404ed9
mov eax, 0x59732c
call dword [0x597348]
push 0
lea eax, [esp + 4]
push eax
push 0x1d
push str.Runtime_error_____at_00000000
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x404f3c
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x58f02c], 0
jne 0x404f2d
push 0
push str.Error
push str.Runtime_error_____at_00000000
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret

Function at 0x405090
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov ebx, ecx
mov dword [ebp - 4], edx
mov edi, eax
mov esi, dword [ebp + 0x10]
cmp dword [0x58f030], 0
je 0x4050b6
mov edx, esi
mov eax, ebx
call dword [0x58f030]
jmp 0x4050c5
mov eax, 8
call fcn.004030ec
mov dword [eax], ebx
mov dword [eax + 4], esi
mov byte [0x597055], 1
mov edx, dword [ebp + 8]
push edx
mov edx, dword [ebp + 0xc]
push edx
push eax
mov eax, 0x405058
push eax
mov eax, dword [ebp - 4]
push eax
push edi
call sub.kernel32.dll_CreateThread
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret 0xc